Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Screen area vs Work area rectangle

Tags:

winapi

monitor

Have a look at this API documentation page...

Can anyone explain to me the difference between the rcMonitor and rcWork components of the MONITORINFO structure? Although I'm happy with the idea that a window has areas you can't work with (like the caption for instance), I don't really see how this applies to monitors...

All contributions gratefully received...

Martin

like image 736
Martin Milan Avatar asked Oct 28 '10 09:10

Martin Milan


1 Answers

rcMonitor is the total resolution of the display

rcWork is the max area you can use,eg if you went fullscreen maximized a window

The work area is the portion of the screen not obscured by the system taskbar or by application desktop toolbars.

http://msdn.microsoft.com/en-us/library/ms724947 - SPI_GETWORKAREA

like image 178
jasper Avatar answered May 06 '23 04:05

jasper