Re: Desktop Size Minus Bars
RECT rectWorkArea;
SystemParametersInfo(SPI_GETWORKAREA, 0, &rectWorkArea, 0);
will the the size of the screen minus any registered appbars (e.g. OfficeBar) and taskbars.
Re: Desktop Size Minus Bars
Capture the WM_GETMINMAXINFO message, or if you use MFC, add ON_WM_GETMINMAXINFO to the message map with the call to OnGetMinMaxInfo()
Regards,
Paul McKenzie
Re: Desktop Size Minus Bars
Thanks for your reply. But this only allows me to dictate the maximum or minimum size of my window, doesn't it? How can I trap this for the desktop? I want to know how big to create a window (which is NOT maximised, but takes up all available space) but without overlapping the taskbar.