changing the menu bar due to a drop-down list selection
-
for my MDI app, i have a toolbar with a drop down list that is properly initialised and created. i can capture/detect when the user selects a given item from the list. desired functionality: whenever the user selects an item from the drop-down list, i want to change the contents of the main menubar. i read the online docs for Microsoft Visual C++ .NET regarding the CMDIFrameWnd::MDISetMenu method. at first glance this is what i want but the article suggests that we should not "call this member function if you use the framework to manage your MDI child windows". any helpful suggestion would be appreciated. thanks.
-
for my MDI app, i have a toolbar with a drop down list that is properly initialised and created. i can capture/detect when the user selects a given item from the list. desired functionality: whenever the user selects an item from the drop-down list, i want to change the contents of the main menubar. i read the online docs for Microsoft Visual C++ .NET regarding the CMDIFrameWnd::MDISetMenu method. at first glance this is what i want but the article suggests that we should not "call this member function if you use the framework to manage your MDI child windows". any helpful suggestion would be appreciated. thanks.
I do not use .NET, but one source that might give you a clue is the book "The MFC Answer Book" (look for MFC FAQ on the internet). When using Visual C++ 6.0, you normaly create a resource for based on the view (but you can change the resource used at any time). The most effective way would probaly be to add and remove menue items directly via code (this is much harder to code and maintain). INTP