Partager via


GetClientRect (Compact 2013)

3/28/2014

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

Syntax

BOOL GetClientRect( 
  HWND hWnd, 
  LPRECT lpRect 
); 

Parameters

  • 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 Value

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

Remarks

Command bars are included in the client area.

Requirements

Header

winuser.h

See Also

Reference

Window Functions
GetWindowRect
RECT