Archived

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

phil05

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

Recommended Posts

I want the window to max to full screen while loading. Is there a command for it, and where do I put it?

Share this post


Link to post
Share on other sites
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