Hello All , is there an API to get screen resolution , and notification or call back function when screen resolution changes
Printable View
Hello All , is there an API to get screen resolution , and notification or call back function when screen resolution changes
Use WM_DISPLAYCHANGE to get notified when the resolution changes. The lParam contains the new resolution.
You can use EnumDisplaySettings to get the resolutions of all connected monitors.
Use GetSystemMetric with SM_CXSCREEN and SM_CYSCREEN for getting reso and rest of thngs as suggested by Marc G.