Really basic question

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?

GetClientRect(HWND hwnd, RECT *rect);

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

All “is” is is “is”

Actually I’m using cross platform QT, but I’ve decided to just keep around my member variables anyhow, thanks though.