Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - multiple command bars message routing?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

multiple command bars message routing?

 Post Reply Post Reply
Author
Message
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post Topic: multiple command bars message routing?
    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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.102 seconds.