Windows控件消息函数 - GetWindowRect

来源:互联网 发布:机械原理 知乎 编辑:程序博客网 时间:2024/05/21 06:46
VB声明Declare Function GetWindowRect Lib "user32" Alias "GetWindowRect" (ByVal hwnd As Long, lpRect As RECT) As Long说明获得整个窗口的范围矩形,窗口的边框、标题栏、滚动条及菜单等都在这个矩形内返回值Long,非零表示成功,零表示失败。会设置GetLastError参数表参数类型及说明hwndLong,想获得范围矩形的那个窗口的句柄lpRectRECT,屏幕坐标中随同窗口装载的矩形注解

如将它与通过GetDesktopWindow获得的句柄联合使用,可获得对整个可视显示区域(桌面)进行说明的矩形

原创粉丝点击