Win32 API: How do I max a window while loading?
I want the window to max to full screen while loading. Is there a command for it, and where do I put it?
If I understand what you''re asking, then use WS_MAXIMIZE when doing the CreateWindow() or CreateWindowEx() function.
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.
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]
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]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement