I need a way to programmatically determine if a monitor is wide or not in Windows.
GetSystemMetrics returns a desktop size that works, but if the user has a widescreen monitor, say, 1024x768, I incorrectly classify it as not wide.
GetDeviceCaps has similar problems with HORZRES and VERTRES, and even HORZSIZE AND VERTSIZE give incorrect results when wide resolution is used for a wide monitor.
Is there any way to detect this reliably?
source
share