MDI Menus - how to change dynamically? 
Author Message
 MDI Menus - how to change dynamically?

I'm developing an app which runs in either SDI or MDI mode depending on a
configuration option. Another option specifies which menu to display - it all
works fine in SDI mode, but not in MDI.

In the app's view in MDI mode, I'm using:

                CFrameWnd* pFrame = GetTopLevelFrame();
                ((CMDIFrameWnd*)pFrame)->MDISetMenu( &m_menu, NULL);
                pFrame->DrawMenuBar();

But nothing seems to happen.

Anyone explain what I'm doing wrong?

Cheers
Anthony

!!       Junk email NOT wanted or appreciated       !!
!! Remove .NOSPAM from address when replying direct !!



Fri, 09 Jun 2000 03:00:00 GMT  
 MDI Menus - how to change dynamically?

Check out KB article "How to Use Multiple Menus in MFC App That Uses
GetDefaultMenu" ID: Q145857.That might help you.  

Quote:

> I'm developing an app which runs in either SDI or MDI mode depending on a
> configuration option. Another option specifies which menu to display - it all
> works fine in SDI mode, but not in MDI.

> In the app's view in MDI mode, I'm using:

>                 CFrameWnd* pFrame = GetTopLevelFrame();
>                 ((CMDIFrameWnd*)pFrame)->MDISetMenu( &m_menu, NULL);
>                 pFrame->DrawMenuBar();

> But nothing seems to happen.

> Anyone explain what I'm doing wrong?

> Cheers
> Anthony

> !!       Junk email NOT wanted or appreciated       !!
> !! Remove .NOSPAM from address when replying direct !!

--
Girish Bharadwaj
Software developer
http://members.tripod.com/~GBharadwaj/index.html




Fri, 09 Jun 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Dynamically changing menu in MDI app

2. Dynamically changing menus in an MDI application

3. dynamically changing MDI MainFrame menu

4. Dynamically Customizing MDI menus

5. Dynamically changing main window title bar for an MDI app

6. changing controls dynamically on a MDI window

7. Dynamically change a menu label

8. Dynamically change menu text

9. Dynamically change caption of a menu

10. Dynamically changing the menu

11. @@@ Dynamically change IE4 menu/toolbar?

12. Dynamically changing top-level menu in SDI app?

 

 
Powered by phpBB® Forum Software