User32GetDlgItem(SafeHandle, Int32) Method

Retrieves a handle to a control in the specified dialog box.

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("User32.dll")]
public static IntPtr GetDlgItem(
	SafeHandle hWnd,
	int index
)

Parameters

hWnd  SafeHandle
A handle to the dialog box that contains the control .
index  Int32
The index of the item to be retrieved.

Return Value

IntPtr
If the function succeeds, the return value is the window handle of the specified control.

If the function fails, the return value is Zero, indicating an invalid dialog box handle or a nonexistent control.

Remarks

See Also