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!!
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!!
Don't laugh at me,I am just a SuperNewbie.
do a search for window styles
WS_SYSMENU | WS_MINIMIZEBOX
Environment: OS X, GCC / G++
Codes: Java, C#, C/C++
AOL IM: neandrake, Email: neandrake (at) gmail (dot) com
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?
Don't laugh at me,I am just a SuperNewbie.
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)....it is created by CreateMDIWindow...
So there is no other way out?
Don't laugh at me,I am just a SuperNewbie.
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.but if the window is a child window, it is created by CreateMDIWindow()
Just Google It. √
(\ /)
( . .)
c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.
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.
Don't laugh at me,I am just a SuperNewbie.