NativeMethodsGetWindowRectangle 方法 |
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.
命名空间:
DSkin
程序集:
DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法public static Rectangle GetWindowRectangle(
IntPtr handle
)
参数
- handle
- 类型:SystemIntPtr
A handle to the window.
返回值
类型:
RectangleRECT structure that receives the screen coordinates of the upper-left and lower-right corners of the window.
备注
In conformance with conventions for the RECT structure, the bottom-right coordinates of the returned rectangle are exclusive. In other words,
the pixel at (right, bottom) lies immediately outside the rectangle.
参见