Archived

This topic is now archived and is closed to further replies.

Win32 API: How do I max a window while loading?

This topic is 4961 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

If I understand what you''re asking, then use WS_MAXIMIZE when doing the CreateWindow() or CreateWindowEx() function.

Share this post


Link to post
Share on other sites
You can also use ShowWindow with SW_MAXIMIZE. But if you want it maximized from the very beginning doing it at CreateWindow time like SiCrane mentions is better.

Share this post


Link to post
Share on other sites
This seems kinda odd.. the max works, but the 'X' on the top-right corner is cut off by half. I try to adjust the screen but it's still cut in half no matter what I do. Any idea? Seems like it's just my computer, but I'm wondering if anyone has the same issue.

EDIT: I have to click the max button in order for the X to be seen fully. Shouldn't it automatically do this when i call WS_MAXIMIZE?

How it looks like after executing...
http://phil.webula.net/window.JPG

[edited by - philvaira on May 17, 2004 7:08:03 PM]

Share this post


Link to post
Share on other sites