How to make window not resizable?

Using C to create a window, how to make the window not resizable? I'm registring a class and then use CreateWindow to create the window.
sa9813Asked:
Who is Participating?
 
AlexVirochovskyConnect With a Mentor Commented:
Simple use WS_POPUP style
0
 
Billy_PilgrimCommented:
hey - i don't know the answer, but if you can't find one:

try when you get a resize message to set the size back to what it was. . .

although to the user it will look a little ugly.  the window will resize then snap back.
0
 
nietodCommented:
Alex, WS_POPUP has nothing to do with it.  (Well, it is true if that is the ONLY style you use, then it won't be resizable, but  doubt that will be the only style.)

You need to specify a window style that does not include the WS_THICKFRAME style.  The WS_THICKFRAME lets the window be resized by the mouse.  You also probably don't want the WS_MAXIMIZEBOX and WS_MINIMIZEBOX styles which allow the window to be minimized and maximized.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
nietodCommented:
sa9813, did alex's answer work for you?  That is the answer you accepted.
0
 
sa9813Author Commented:
No, not exactly but it sure got me on the right track! Thank you for giving me the extra information...Was it wrong of me to give Alex the points? I just had to add WS_POPUPWINDOW instead of WS_POPUP...just tell me if you would like any points I have got alot of questions, I sure am a newbie!
0
 
nietodCommented:
If it helped you that's good.  To me it seemed like the wrong answer--which would not be typical from Alex.  I guess it depends on how you interpret it.

I just don't like to see the wrong answer being accepted, the point system is a large point of what makes the site work.  But it sounds like it really wasn't the wrong answer, at least not as far as you are concerned (which is all that matters).
0
All Courses

From novice to tech pro — start learning today.