Jump to content
  • Advertisement

Archived

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

Emexus

Win32 Maxamize

This topic is 5534 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

Hi, Im having some trouble maxamizing my application when it starts up, my code is as follows.
  

hWnd = CreateWindow(
		   szAppName,		
		   "test",
		   WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX |
WS_MAXIMIZEBOX | WS_MAXIMIZE,	
		   CW_USEDEFAULT,			
		   CW_USEDEFAULT,				
		   CW_USEDEFAULT,				
		   CW_USEDEFAULT,			
		   0,							
		   0,							
		   hInstance,					
		   0							          );
  
cheers for any help

Share this post


Link to post
Share on other sites
Advertisement
You need to specify WS_VISIBLE to make use WS_MAXIMIZE I think.
Else you could simply use SW_MAXIMIZE in your ShowWindow call.

Share this post


Link to post
Share on other sites
cheers for the reply,

WS_VISIBLE dosent seem to make any difference, an i really want to set it as maximised in this structure,
it is really confusing me.
cheers

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
don''t do it that way. Take out the maximize flag and when you call ShowWindow, use ShowWindow(SW_MAXIMIZE);

Share this post


Link to post
Share on other sites
See, you aren''t saying what you are using when you are calling ShowWindow. I''m betting that you are currently overriding the window style.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!