DEVMODE dm; ZeroMemory(&dm, sizeof(DEVMODE)); dm.dmSize = sizeof(DEVMODE); if (EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &dm)) { // Width and height (in pixel) of the monitor are: int width = dm.dmPelsWidth; int height = dm.dmPelsHeight; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)