Mega Code Archive

 
Categories / Delphi / Examples
 

Determine the size of the windows taskbar with delphi 4

Q: How can I determine the size of the windows taskbar with Delphi 4? A: There are several ways to obtain this information: look at SystemParametersInfo and the SPI_GETWORKAREA index use Screen.DesktopHeight, Screen.DesktopWidth properties call SHAppBarMessage(ABM_GETTASKBARPOS, pabd); and then read the APPBARDATA structure for the Height and Width.