ComCtl32GetEffectiveClientRect(IntPtr, Rectangle, IntPtr) Method
Calculates the dimensions of a rectangle in the client area that contains all the specified controls.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("ComCtl32.dll", SetLastError := true>]
Public Shared Sub GetEffectiveClientRect (
hWnd As IntPtr,
<OutAttribute> ByRef refRect As Rectangle,
info As IntPtr
)
Dim hWnd As IntPtr
Dim refRect As Rectangle
Dim info As IntPtr
ComCtl32.GetEffectiveClientRect(hWnd,
refRect, info)
public:
[DllImportAttribute(L"ComCtl32.dll", SetLastError = true)]
static void GetEffectiveClientRect(
IntPtr hWnd,
[OutAttribute] Rectangle% refRect,
IntPtr info
)
[<DllImportAttribute("ComCtl32.dll", SetLastError = true)>]
static member GetEffectiveClientRect :
hWnd : IntPtr *
refRect : Rectangle byref *
info : IntPtr -> unit
No code example is currently available or this language may not be supported.
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.