Advertisement

How to check the resolution?

Started by May 10, 2001 11:29 AM
0 comments, last by cjspender 23 years, 9 months ago
I was wondering if someone can tell me how to check the screen resolution ( C++ ) ? For example to make a tiny program which checks if the screen is 800 x 600, then continues, if not then returns to Windows....
This should do it;

int Width = GetSystemMetrics(SM_CXSCREEN);
int Height = GetSystemMetrics(SM_CYSCREEN);

Cheers

Matt



This topic is closed to new replies.

Advertisement