I need to know the size of the display, minus the taskbar, so I can display a window and know all the controls will be visible and accessible to the user.
I thought the following system call might offer something:
SystemParametersInfo(SPI_GETWORKAREA, ...
From the description:
The work area is the portion of the screen not obscured by the system taskbar or by application desktop toolbars.
I'm not sure what "application desktop toolbars" means. Perhaps someone can show me an example.
I think I know what the taskbar is.
I'm confused by the rectangle returned by the call.
This is a 4k display, 3840 x 2160. Because I was having trouble finding the available space I set the magnification to 100%, from the recommended 150%.
The following screenshot shows:
The SystemParametersInfo(SPI_GETWORKAREA, ... documentation.
The display settings, 100% size and 3840 x 2160.
The source code in a debugging session after a break point at the call to SystemParametersInfo().
The rectangle returned by the SystemParametersInfo() 3840 x 2160.
And, at the bottom of the screen, the taskbar which was being displayed when the call to SystemParametersInfo() was made.
The rectangle returned by SystemParametersInfo() does not exclude the taskbar.
What am I doing wrong?
Thanks
Larry