Sign in to follow this  

AdjustWindowRect doesn't work w/ WS_MAXIMIZE...

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

This topic is 4304 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this