Window Resizing
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
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 :)
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 :)
--
Cheers,
Darren Clark
Cheers,
Darren Clark
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement