怎样得到一个控件的长宽高?

Developerljm 2001-12-20 04:10:54
...全文
53 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
bluekite 2001-12-20
  • 打赏
  • 举报
回复
GetClientRect() only get the client area of the control, not include the border or frame. you should use GetWindowRect().
combobox 2001-12-20
  • 打赏
  • 举报
回复
不过要注意
GetClientRect()和GetRect()的区别
xxtliu 2001-12-20
  • 打赏
  • 举报
回复
GetClientRect(rect)可以得到他的长和宽,你所说的高,可能是边框吧,那个你自己设置吧

69,382

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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