Prevent Resizing (Win32)

Started by
4 comments, last by Aggrix 22 years, 1 month ago
How do you prevent resizing in a win32 application. Do you have to use a WS_ or WS_EX_ command or do you have to mess around with the WM_SIZE message? Thanx for your Help
Advertisement
WS_OVERLAPPED will work.
I figure I might as well include these.

WS_BORDER Creates a window that has a border.


WS_CAPTION Creates a window that has a title bar (implies the WS_BORDER style). Cannot be used with the WS_DLGFRAME style.


WS_CHILD Creates a child window. Cannot be used with the WS_POPUP style.


WS_CLIPCHILDREN Excludes the area occupied by child windows when you draw within the parent window. Used when you create the parent window.


WS_CLIPSIBLINGS Clips child windows relative to each other; that is, when a particular child window receives a paint message, the WS_CLIPSIBLINGS style clips all other overlapped child windows out of the region of the child window to be updated. (If WS_CLIPSIBLINGS is not given and child windows overlap, when you draw within the client area of a child window, it is possible to draw within the client area of a neighboring child window.) For use with the WS_CHILD style only.


WS_DISABLED Creates a window that is initially disabled.


WS_DLGFRAME Creates a window with a double border but no title.


WS_GROUP Specifies the first control of a group of controls in which the user can move from one control to the next with the arrow keys. All controls defined with the WS_GROUP style FALSE after the first control belong to the same group. The next control with the WS_GROUP style starts the next group (that is, one group ends where the next begins).


WS_HSCROLL Creates a window that has a horizontal scroll bar.


WS_MAXIMIZE Creates a window of maximum size.


WS_MAXIMIZEBOX Creates a window that has a Maximize button.


WS_MINIMIZE Creates a window that is initially minimized. For use with the WS_OVERLAPPED style only.


WS_MINIMIZEBOX Creates a window that has a Minimize button.


WS_OVERLAPPED Creates an overlapped window. An overlapped window usually has a caption and a border.


WS_OVERLAPPEDWINDOW Creates an overlapped window with the WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX styles.


WS_POPUP Creates a pop-up window. Cannot be used with the WS_CHILD style.


WS_POPUPWINDOW Creates a pop-up window with the WS_BORDER, WS_POPUP, and WS_SYSMENU styles. The WS_CAPTION style must be combined with the WS_POPUPWINDOW style to make the Control menu visible.


WS_SYSMENU Creates a window that has a Control-menu box in its title bar. Used only for windows with title bars.


WS_TABSTOP Specifies one of any number of controls through which the user can move by using the TAB key. The TAB key moves the user to the next control specified by the WS_TABSTOP style.


WS_THICKFRAME Creates a window with a thick frame that can be used to size the window.


WS_VISIBLE Creates a window that is initially visible.


WS_VSCROLL Creates a window that has a vertical scroll bar.

Almost, if not everything you''ll ever need to know when it comes to Windoow Styles,
"...."
Ive origionaly tried just using WS_OVERLAPPED, but then I couldnt close the f*****g window! I looked in MSDN about the other styles as Lunatic Raven shows, but they donet exactly have one for just a Close button, so i played and found you need to combine WS_OVERLAPPED and WS_SYSMEU








xds4lx

Edited by - xds4lx on February 19, 2002 10:29:16 PM
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
Thanx guys. Now my Pong game won''t get its collisions calculations messed up by resizing.
o.0


You could hanlde, and blow-off the WM_SIZE message too.
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

This topic is closed to new replies.

Advertisement