Jump to content
  • Advertisement
Sign in to follow this  

AdjustWindowRect doesn't work w/ WS_MAXIMIZE...

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

(Using: C++/OpenGL) I use AdjustWindowRect() when I'm creating my OpenGL window to adjust the window's size for the title bar, so part of the viewport isn't crammed up underneath it. But it doesn't work for maximized windows. I mean I can (and have) manually measured how long and tall I need to set my viewport to make things right, and it works. But that's with my desktop at 1024x768 resolution. If it was different, the viewport wouldn't be the right size. Now, I'm going to be the only one using this program, but still, it's annoying just leaving it like that. So I need either a way to get the screen resolution so I can size my viewport right, or a way to directly get the actual size of the inside of the window when it's maximized. Although, if you know how to do both, list both since they would both be useful information. Any help would be appreciate. And thanks in advance.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!