CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Aug 2006
    Posts
    231

    How to omit MFC menu?

    How can I skip creation of the main menu when MainFrame is derived from CMDIFrameWndEx?

    I tried following the same steps as with CMDIFrameWnd (http://support.microsoft.com/kb/131368). However, the overriding of CMDIFrameWndEx::LoadFrame() doesn't seem to be that simple. Just like the base method, I need to call m_Impl.OnLoadFrame(). But OnLoadFrame is a protected method in CFrameImpl, and that class is not declared as a friend to CMainFrame (this is where I do the overriding).
    Last edited by TubularX; November 28th, 2011 at 03:39 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured