Re: SDI, mainframe without menu?

"Dani" <dmagn25-/[email protected]> Sun, 13 Mar 2011 21:23:24 -0000
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
Thank you, it worked.

--- In [email protected], "domehead100" <domehead100@...> wrote:
>
> How about, in CMainFrame::OnCreate...
> 
> HMENU hMenu = GetMenu();
> SetMenu(NULL);
> DestroyMenu(hMenu);
> 
> And remove the m_CmdBar from CMainFrame, remove the code in OnCreate that creates the command bar, attaches it to the window menu, and loads images.
> 
> ~Mike
> 
> --- In [email protected], "Dani" <dmagn25@> wrote:
> >
> > I'm trying to remove the menu from my WTL (/ATL) application. In MFC you can remove the window from CREATESTRUCT in PreCreateWindow, but there's no such method in ATL.
> > 
> > How can I do this in a SDI app?
> > 
> > thanks,
> > -Dan
> >
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/