bool getclientrect( hwnd hwnd, // handle to window
lprect lprect // client coordinates
);
parameters
- hwnd
- [in] handle to the window whose client coordinates are to be retrieved.
- lprect
- [out] pointer to a rect 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.
return values
if the function succeeds, the return value is nonzero.
if the function fails, the return value is zero. to get extended error information, call getlasterror.
// todo:
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).