multiple command bars message routing? |
Post Reply |
Author | |
Ark42
Senior Member Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
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. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |