windows编程里怎么获得窗口四个点的坐标
windows编程里如何获得窗口四个点的坐标?
如题,应该用什么函数?以及获得用户区四个边界点坐标的。
------解决方案--------------------
GetClientRect
BOOL GetClientRect(
HWND hWnd, // handle to window
LPRECT lpRect // address of structure for client coordinates
);
Parameters
hWnd
Handle to the window whose client coordinates are to be retrieved.
lpRect
Pointer to aRECT structure that receives the client coordinates. The left and top members are zero. The right and bottom members contain the width and height of the window.
如题,应该用什么函数?以及获得用户区四个边界点坐标的。
------解决方案--------------------
GetClientRect
BOOL GetClientRect(
HWND hWnd, // handle to window
LPRECT lpRect // address of structure for client coordinates
);
Parameters
hWnd
Handle to the window whose client coordinates are to be retrieved.
lpRect
Pointer to aRECT structure that receives the client coordinates. The left and top members are zero. The right and bottom members contain the width and height of the window.