Screen Rect

Started by
1 comment, last by fury3 23 years, 11 months ago
I''m trying to find the width and height of the screen using ''GetBoundsRect()'', but I cannot get it to work: RECT Rect; int ScreenWidth; int ScreenHeight; GetBoundsRect(GetDC(0), &Rect, 0); ScreenWidth = Rect.right; ScreenHeight = Rect.bottom; Sometimes the values are correct, but mostly they are too large. Is this the right approach? Are their other ways to find the width and height of the screen? Thanx in Advance
Advertisement
Are you doing this everytime the window is resized?

Edited by - SoGreen on May 15, 2000 5:45:46 PM
There's always something smaller and something bigger. Don't sweat the small stuff and don't piss off the big stuff :)
Never Mind, I found a way to do it with ''GetDeviceCaps()''!

Thanx alot anyway!

This topic is closed to new replies.

Advertisement