Höhe der Titelleiste (Caption) eines Fensters ermitteln

// für normale Fenster
int iCaptionHeightNormal = GetSystemMetrics(SM_CYCAPTION);
// für Toolfenster
int iCaptionHeightTool = GetSystemMetrics(SM_CYSMCAPTION);