GetEffectiveClientRect function (commctrl.h)

Calculates the dimensions of a rectangle in the client area that contains all the specified controls.

Syntax

void GetEffectiveClientRect(
       HWND      hWnd,
       LPRECT    lprc,
  [in] const INT *lpInfo
);

Parameters

hWnd

Type: HWND

A handle to the window that has the client area to check.

lprc

Type: LPRECT

A pointer to a RECT structure that receives the dimensions of the rectangle.

[in] lpInfo

Type: const INT*

A pointer to a null-terminated array of integers that identify controls in the client area. Each control requires a pair of consecutive elements. The first element of the pair must be nonzero and the second element of the pair must be the control identifier. The first pair represents the menu and is ignored. The last element must be zero to identify the end of the array.

Return value

None

Remarks

If a window in the lprc array is visible, or will be visible when its parent becomes visible, its rectangle is subtracted from the effective client rectangle.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h
Library Comctl32.lib
DLL Comctl32.dll

See also

ShowHideMenuCtl