GetClientRect 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). BOOL GetClientRect( HWND hWnd, // handle to window LPRECT lpRect // client coordinates );
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). BOOL GetClientRect(
HWND hWnd, // handle to window
LPRECT lpRect // client coordinates
);
getclientrect
两个星的家伙提供的方法是对所有windows窗口有效