Link to home
Start Free TrialLog in
Avatar of AgeOfWars
AgeOfWars

asked on

active title bar height URGENT!!!

Hi guys,

How do i get the height of the active title bar of the form?

Please answer as detail as possible :)
Thank you!
Avatar of Ivanov_G
Ivanov_G
Flag of Bulgaria image

Use GetSystemMetrics with parameter SM_CYCAPTION
procedure TForm1.Button1Click(Sender: TObject);
var
  caption_height   : Integer;
begin
  caption_height := GetSystemMetrics(SM_CYCAPTION);
  ShowMessage(IntToStr(caption_height));
end;
ASKER CERTIFIED SOLUTION
Avatar of esoftbg
esoftbg
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial