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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
AlexVirochovskyCommented:
Simple use WS_POPUP style
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.