PDA

View Full Version : Really basic question



Clayton
09-18-2003, 12:02 PM
How do I, or is it even possible, to recieve my screen size, width and height, outside of the resize function? I'm trying to nab my depth buffer deep inside of my draw function. Do I just need to keep those two variables around from the resize?

09-18-2003, 12:57 PM
GetClientRect(HWND hwnd, RECT *rect);

It takes in hwnd and returns the screen coordinates into rect.

All "is" is is "is"

Clayton
09-18-2003, 01:31 PM
Actually I'm using cross platform QT, but I've decided to just keep around my member variables anyhow, thanks though.