This topic is now archived and is closed to further replies.

MDI window without caption or sysmenu

This topic is 5671 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I create a MDI window without a caption or system menu (No icon, maximize, minimize or close button)? I'm using Borland C++ 5.02/MS Visual Studio 6.00 ==================================================================== It's not the fall that kills you. It's the sudden stop at the end. [edited by - TheSorcerer on June 6, 2002 3:59:14 AM]

Share this post

Link to post
Share on other sites
CMdiChildWnd is a window you''ve have inherithed by the mdi
child base class , not that the class in this example is
arbitrary you should put your own base class

BOOL CMdiChildWnd:reCreateWindow(CREATESTRUCT& cs)

// Create a child window without the maximize button |= WS_HSCROLL; |= WS_VSCROLL;

if( !CMDIFrameWnd:reCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by
// modyfing the CREATESTRUCT cs

return TRUE;

i hope it helps, anyway i agree for the sudden stop killing you

Share this post

Link to post
Share on other sites
You can also set up a rect and use SetWindowRgn to clip that stuff off, if you''d like. This will kill the border, as you''re not allowed to use WS_POPUP with WS_CHILD (which I personally find annoying. *shrug*)

Here''s the removal for caption/sysmenu, which you put in the mainframe of an MDI:

LONG nostyle=::GetWindowLong(m_hWnd,GWL_STYLE);

If you want to hide the status bar and the tool bar as well, you just use


I wasn''t able to find one for the main menu in my cursory search, so if you''re trying that too and you find it do let me know, as it''s on my "good stuff to know" list.


Share this post

Link to post
Share on other sites