You can use SPI_GETWORKAREAwith SystemParametersInfoto get the available screen size, excluding the taskbar, you GetSystemMetricscan get the full screen size, so the size of the taskbar is just the difference in the axis the taskbar is on, you have to check which of these axes, comparing both axes , since my taskbar is not always at the bottom.
source
share