How can I calculate the taskbar height,
so that my winapi app starts up of it?
Now, as it is, when I launch my program,
it starts and the bottom of it is placed behind the taskbar.
How can I tell my program to move
above the taskbar as soon as it starts?
I’ll mark the right answer.Thnx.
How can I calculate the taskbar height, so that my winapi app starts up
Share
You can use
SPI_GETWORKAREAwithSystemParametersInfoto get the available screen size, excluding the taskbar,GetSystemMetricscan get you the full screen size, so the taskbar size is just the difference of the axis that the taskbar is one, you should check which axis that is by comparing both axies, as the taskbar my not always be on the bottom.