
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 !!