Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3711
Number of posts: 9173

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
How to disable window re-sizing? Posted by Dee on 24 Nov 1999 at 10:40 PM
<br>
This may seem like a simple question, but how do you disable the <br>
re-sizing of a window? The maximize icon in the system menu<br>
should also be grayed out or disable.<p>
I basically want the window to behave like the Calculator program<br>
in the Accessories group.<p>
Dee


Edit Report
Re: How to disable window re-sizing? Posted by moonshadow on 25 Nov 1999 at 6:00 AM
This is the style:<br>
WS_OVERLAPPED | WS_SYSMENU | WS_MINIMIZEBOX<p>
If you are using API mode, use in CreateWindowEx()<p>
If you are using MFC, set in PreCreateWindow of CMainFrame.<p>
Thanks<p>
<p>
: <br>
: This may seem like a simple question, but how do you disable the <br>
: re-sizing of a window? The maximize icon in the system menu<br>
: should also be grayed out or disable.<p>
: I basically want the window to behave like the Calculator program<br>
: in the Accessories group.<p>
: Dee<p>



Edit Report
Re: How to disable window re-sizing? Posted by Dee on 25 Nov 1999 at 11:36 AM
: This is the style:<br>
: WS_OVERLAPPED | WS_SYSMENU | WS_MINIMIZEBOX<p>
: If you are using API mode, use in CreateWindowEx()<p>
: If you are using MFC, set in PreCreateWindow of CMainFrame.<p>
: Thanks<p>
I had to throw in a WS_VISIBLE in there to see it, but it worked! I <br>
originally was using WS_OVERLAPPEDWINDOW, and now I see that it included <br>
WS_MAXIMIZEBOX which was screwing up everything.<p>
Thanks!<br>






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.