Hi all,
Suppose I create a normal window, and in it's clientarea I create a MDI window.
Is it possible to get rid of the Sysmenu on the MDI Window.
I tried and tried, but couldn't get rid of it.
Thanks in advance for your advise.
Friendly regards,
mdevries.
Suppose I create a normal window, and in it's clientarea I create a MDI window.
Is it possible to get rid of the Sysmenu on the MDI Window.
I tried and tried, but couldn't get rid of it.
Thanks in advance for your advise.
Friendly regards,
mdevries.
I haven't used it but suspect this is where to start:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/menus/menureference/menufunctions/deletemenu.asp
using the API DeleteMenu
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/menus/menureference/menufunctions/deletemenu.asp
using the API DeleteMenu
Hi Drarem,
Thanks for your reply.
Ik have looked at DeleteMenu in the link you provided. But it handles the normal menu structure. Not the SysMenu: that is the Close- , Minimize- and Maximize buttons. So my question remains the same.
Friendly regards,
mdevries
Thanks for your reply.
Ik have looked at DeleteMenu in the link you provided. But it handles the normal menu structure. Not the SysMenu: that is the Close- , Minimize- and Maximize buttons. So my question remains the same.
Friendly regards,
mdevries
this works for me:
The child window defaults with a caption only. There are other settings also (windows styles or ex styles) you can use to change appearance of.
invoke CreateWindowEx,WS_EX_LEFT,
ADDR ClassName2,
ADDR tChild2,
NULL,
50,50,640,300,
hWnd,NULL,
hInstance,NULL
The child window defaults with a caption only. There are other settings also (windows styles or ex styles) you can use to change appearance of.
Well yes, you can also try this..
Sorry that it's in C but it should be easy enough to convert it. Basically you get the Window long and bitwise AND the styles you don't want out of it.
Sorry that it's in C but it should be easy enough to convert it. Basically you get the Window long and bitwise AND the styles you don't want out of it.
style = GetWindowLong(hwnd, GWL_STYLE);
style = style & (~WS_MAXIMIZEBOX) & (~WS_THICKFRAME);
style = style | WS_BORDER;
SetWindowLong(hwnd, GWL_STYLE, style);
/* We should repaint here perhaps, so that the Window long gets set. */
UpdateWindow(hwnd);