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.
You can use SPI_GETWORKAREA
with SystemParametersInfo
to get the available screen size, excluding the taskbar, GetSystemMetrics
can 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With