Jump to content
  • Advertisement

Archived

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

gamedevrules

help....how do i set default window size?

This topic is 6020 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, i was wondering if anyone knows the code to set window size when a C++ program is run.... (for example....make it full screen, or window''d mode with 640x480) can anyone help me plez? tia

Share this post


Link to post
Share on other sites
Advertisement
If you''re using the Win32 API, you can just give the width and height you want when you call CreateWindow (or CreateWindowEx). If you want to change the size of a window, you can use MoveWindow and give a new size, and I think there are some others you can use for even more control.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!