Print Page | Close Window

multiple command bars message routing?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=740
Printed Date: 24 December 2024 at 8:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: multiple command bars message routing?
Posted By: Ark42
Subject: multiple command bars message routing?
Date Posted: 16 May 2004 at 3:11pm

Alright, I have 3 spots where I call InitCommandBars() - a CXTPMDIFrameWnd (CMainFrame), a CXTPFrameWndBase<CMDIChildWnd>, and a CXTPFrameWnd that goes in a docking pane.
The CMainFrame loads designer bars, and the other two windows only have a single toolbar that is created via code by copying controls information from a hidden toolbar on the main frame.

Now, the problem is that on the CMDIChildWnd, any toolbar control that is handled by the CMainFrame will just stay greyed out.  Anything handled by the CScrollView it contains, or by the CWinApp will work just fine.
On the docking pane window, only controls handled by CWinApp work. Anything handled by its CScrollView or CMainFrame remains greyed out forever.

What do I have to do to properly route the messages so that the command bars will know when a control is supposed to be enabled and doing something.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net