I've got an extended desktop (two displays) and I want to run a fullscreen window on the secondary display.
But calling GetSystemMetrics(SM_CXSCREEN/SM_CYSCREEN) only returns the size of my primary display. How can I get the width/height of my _secondary_ display?

/Leffe
Posted on 2004-02-04 10:35:33 by Hugin
Well, I geuss you could use EnumDisplayMonitors/GetMonitorInfo. You use the szDevice member of MONITORINFOEX and create a DC then use GetDeviceCaps to retrieve the HORZRES and VERTRES values.
Posted on 2004-02-04 12:49:18 by donkey