Hi,
In my MDI app I would like to remove the close button from the system menu in all my view frames and just have the maximize and minimize button. Can't seem to do it. I can disable the close button using CMenu but I would like it removed.
Is this possible? I noticed in the CDialog properties it will not allow you to select minimize or maximize options unless system menu is selected. Maybe that's the case with CMDIChildWnd?
Here's what I've tried for flags:
BOOL CChildFrame:reCreateWindow(CREATESTRUCT& cs)
{
if( !CMDIChildWnd:reCreateWindow(cs) )
return FALSE;
cs.style = WS_CHILD | WS_VISIBLE | WS_CAPTION |
WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME;
return TRUE;
}
Let me know if you can help me out.
Thanks,
Brother C