ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 关于GetClientRect 和 GetWindowRect

关于GetClientRect 和 GetWindowRect

原创 Linux操作系统 作者:gavinlee 时间:2006-11-29 14:16:09 0 删除 编辑

GetClientRect得到的是客户区的大小,也就是说这样得到的左上角永远是(0,0)

GetWindowRect 是窗口相对于整个屏幕的坐标,屏幕左上点为0,0

[@more@]

The GetClientRect function retrieves the coordinates of a window's client area. The client coordinates specify the upper-left and lower-right corners of the client area. Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner are (0,0).

The GetWindowRect function retrieves the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen.

相互转化用ScreenToClient 或者 ClientToScreen

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/310974/viewspace-880578/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: API 列表
请登录后发表评论 登录
全部评论
  • 博文量
    51
  • 访问量
    795697