Re: Can I remove the System Menu Icon from the MDI menubar
I never do this, but I'd guess you could do it in mainframe.cpp in the
PreCreateWindow() function with something like:
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style &= ~WS_SYSMENU;
// What ever styles you want
}
Tom
"reddyk" <reddyknospamalias@nospam.nospam> wrote in message
news:455AE66B-06A3-4338-AA14-7EDBE9213A57@microsoft.com...
Hi,
I am working with a standard MDI window application. I want to remove
the System menu and its icon from the top left most corner of the title
bar
from the MDI child windows. I want to retain the maximize/minmize/close
that
are displayed on the right side of the title bar.
With the help of this,
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1865178&SiteID=1 , I
am
able to turn off the system menu icon and also retain the
maximize/minimize/close on the MDI child windows.
The issue is if you maximize the child window, Windows add the System Menu
along with a default icon to the MDI Main window's menu bar. You can see
this
at the top left corner of the menu bar. Is there a way that I can turn off
the System menu and its icon that gets displayed in the menubar when the
child window is maximized?
Thanks in advance,