GetEffectiveClientRect function

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.

lpInfo [in]

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

No return value.

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

Library

Comctl32.lib

DLL

Comctl32.dll

See also

ShowHideMenuCtl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft