标题兰的高

Tarquila 2003-09-28 08:49:25
请问有没有办法得到一个窗口标题栏的高度。也就是那个兰颜色的条条
...全文
70 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
procedure TForm1.Button1Click(Sender: TObject);
begin
showmessage(inttostr(form1.Height-form1.ClientHeight));
end;
netwizard 2003-09-29
  • 打赏
  • 举报
回复
GetSystemMetrics(),用SM_CYSMCAPTION参数了。
hehe,看看MSSDK的帮助吧。
laurecn 2003-09-28
  • 打赏
  • 举报
回复
The SetWindowLong function changes an attribute of the specified window. The function also sets a 32-bit (long) value at the specified offset into the extra window memory of a window.

LONG SetWindowLong(

HWND hWnd, // handle of window
int nIndex, // offset of value to set
LONG dwNewLong // new value
);
上海老李 2003-09-28
  • 打赏
  • 举报
回复
一般是标准的,你可以用API来得到吧,设置应是SETWINDOWLONG

1,184

社区成员

发帖
与我相关
我的任务
社区描述
Delphi Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧