Removing main menu from MFC SDI app 
Author Message
 Removing main menu from MFC SDI app

Hi all
How can I remove the standard main menu from my MFC-SDI
App?

thanks in advance..

neo



Sun, 24 Apr 2005 12:49:39 GMT  
 Removing main menu from MFC SDI app

Quote:
>How can I remove the standard main menu from my MFC-SDI
>App?

Try this code in InitInstance:

        // Dispatch commands specified on the command line
        if (!ProcessShellCommand(cmdInfo))
                return FALSE;

        /* Remove the menu */
        m_pMainWnd->SetMenu( NULL );
        m_pMainWnd->ShowWindow(SW_SHOW);
        m_pMainWnd->UpdateWindow();

        return TRUE;

Quote:
}

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq


Sun, 24 Apr 2005 13:56:03 GMT  
 Removing main menu from MFC SDI app

Quote:
> Hi all
> How can I remove the standard main menu from my MFC-SDI
> App?

See if MSDN Article Q131368, "HOWTO: Create MFC Applications that Do Not
Have a Menu Bar", addresses this one.

--
Jeff Partch [VC++ MVP]



Sun, 24 Apr 2005 14:10:14 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Disabling main menu items in MFC based apps

2. Remove menu from SDI application

3. Remove menu from SDI application

4. Removing menu from an SDI

5. Removing Menus in Main Frame

6. SDI APP: Exception handling - Stroustrup (3.7.2) main() with try-block

7. How to *REMOVE* the maximize box on an SDI app

8. displaying an initial screen in an SDI program before the main sdi

9. Multiple views in SDI app with Custom Message Routing problem (Context Menus)

10. changing the main frame menu in MDI app

11. main app menu modifying

12. SDI app with no menu

 

 
Powered by phpBB® Forum Software