Detect screen resolution change
-
Hi! I need to detect screen resolution change cause i am working in a toolbar that docks in the borders of the screen. Thanks
-
Hi! I need to detect screen resolution change cause i am working in a toolbar that docks in the borders of the screen. Thanks
If you us the GetSystemMetrics Function[^]
int x = GetSystemMetrics(SM_CXSCREEN); int y = GetSystemMetrics(SM_CYSCREEN);
On a multi-monitor system you can use SM_CXVIRTUALSCREEN and SM_CYVIRTUALSCREEN. You could also use the GetDeviceCaps Function[^]int x = GetDeviceCaps(hDC, HORZRES); int y = GetDeviceCaps(hDC, VERTRES);
Best Wishes, -David Delaune -
Hi! I need to detect screen resolution change cause i am working in a toolbar that docks in the borders of the screen. Thanks
There's a system event which should be what you're looking for documented here.[^]
There are three kinds of people in the world - those who can count and those who can't...