ComCtl32GetEffectiveClientRect(IntPtr, Rectangle, IntPtr) Method

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

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("ComCtl32.dll", SetLastError = true)]
public static void GetEffectiveClientRect(
	IntPtr hWnd,
	out Rectangle refRect,
	IntPtr info
)

Parameters

hWnd  IntPtr
A handle to the window that has the client area to check.
refRect  Rectangle
A Rectangle structure that receives the dimensions of the rectangle.
info  IntPtr
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.

Remarks

See Also