GetClientRect (Windows CE 5.0)

Send Feedback

This function retrieves the coordinates of a window's client area.

BOOLGetClientRect(   HWNDhWnd,   LPRECTlpRect );


  • hWnd
    [in] Handle to the window whose client coordinates are to be retrieved.
  • lpRect
    [out] Long 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

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.


Command bars are included in the client area.


OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.

See Also

GetWindowRect | RECT | Windows Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.