User32GetDlgItem(IntPtr, Int32) Method
Retrieves a handle to a control in the specified dialog box.
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("User32.dll")]
public static IntPtr GetDlgItem(
IntPtr hWnd,
int index
)
<DllImportAttribute("User32.dll">]
Public Shared Function GetDlgItem (
hWnd As IntPtr,
index As Integer
) As IntPtr
Dim hWnd As IntPtr
Dim index As Integer
Dim returnValue As IntPtr
returnValue = User32.GetDlgItem(hWnd,
index)
public:
[DllImportAttribute(L"User32.dll")]
static IntPtr GetDlgItem(
IntPtr hWnd,
int index
)
[<DllImportAttribute("User32.dll")>]
static member GetDlgItem :
hWnd : IntPtr *
index : int -> IntPtr
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
A handle to the dialog box that contains the control
.
- index Int32
-
The index of the item to be retrieved.
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.