- 人气:
- 放大
- 缩小
- 二维码
- 赞赏
delphi 获取标题栏高
delphi 获取标题栏高
procedure TForm1.Button9Click(Sender: TObject);
var
frameh,captionh,menuh: Integer;
str:string;
begin
//边框高
frameh := GetSystemMetrics(SM_CXFRAME);
//标题高
captionh := GetSystemMetrics(SM_CYCAPTION);
//菜单高
menuh:=GetSystemMetrics(SM_CYMENU);
str:= inttostr( frameh)+' '+inttostr(captionh)+' '+inttostr(menuh) ;
memo1.text:=str;
end;
本文链接:https://blog.csdn.net/ozhy111/article/details/81452490