I am using VC 5.0.
In my MDI application I added a context menu (TrackPopupMenu) to the CTreeCtrl class inserted into CControlBar. The handlers of the menu commands are implemented in the CMainFrame class. When the bar is docked everything is OK: commands are
handled successfully. BUT when I undock the bar all items in the context menu become gray. As I understand MFC stop "seeing" the handlers in CMainFrame.
I guess that something is wrong with the command routing mechanism, but I can't catch what exactly fails.