Hi:
How can I fix the size of the window, user can't resize or maxmize it(disable maxmize button) I just could not find the flag, it is just like WS___??or something? Thanks you!!
Printable View
Hi:
How can I fix the size of the window, user can't resize or maxmize it(disable maxmize button) I just could not find the flag, it is just like WS___??or something? Thanks you!!
do a search for window styles
WS_SYSMENU | WS_MINIMIZEBOX
Thanks, but if the window is a child window, it is created by
CreateMDIWindow(), Seems there are only 4 styles:
WS_MINIMIZE
WS_MAXIMIZE
WS_VSCROLL
WS_HSCROLL
what should I do then?
unless it is an MDI application, all windows can be created with CreateWindow, and therefore, have access to all the styles(im lieing here, there are some styles only available to the main window).Quote:
...it is created by CreateMDIWindow...
So there is no other way out?:(
You CAN create it with CreateWindow() and/or CreateWindowEx(). That way you can pick what styles you want, minus the styles only available to main windows.Quote:
but if the window is a child window, it is created by CreateMDIWindow()
OK, I think this is the at lease one way to work with CreateWindow():
dwstyle:
Bolded style might not be necessary, I don't know that.Code:WS_CHILD | ALLCHILDSTYLES | WS_VISIBLE | WS_CLIPSIBLINGS| WS_MINIMIZEBOX | WS_SYSMENU | WS_CAPTION
Thanks for you all great help.