Sign in to follow this  

Window Resizing

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

Hey, I'm looking for a functions that can give me the current height and width of my activated window. For Example : function makeTextures() { -> retrieve window height and width; -> ReSizeGLWindow(new height, new width); -> Do Some texturing code -> ReSizeGLWindow(old height, old width); } I searched through the MDSN but didn't found a function like this. Maybe i looked over it. Does there excists a function for this ? Thanks in advance, Codorke

Share this post


Link to post
Share on other sites
Try looking for 'GetWindowRect' and 'GetClientRect' on MSDN, they'll give you what you need.

Generally it would be a lot easier to just store the sizes of the window when you make the call to create it. If you want the client size then you'll have to modify the sizes to reflect the window borders and title bar.

Hope that helped :)

Share this post


Link to post
Share on other sites

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