|
WindowHelperGetParent Method |
Namespace: Xcalibur.NativeMethods.V2.WindowsAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax [DllImportAttribute("user32.dll", CharSet = CharSet.Auto)]
public static IntPtr GetParent(
IntPtr windowHandle
)
<DllImportAttribute("user32.dll", CharSet := CharSet.Auto>]
Public Shared Function GetParent (
windowHandle As IntPtr
) As IntPtr
public:
[DllImportAttribute(L"user32.dll", CharSet = CharSet::Auto)]
static IntPtr GetParent(
IntPtr windowHandle
)
[<DllImportAttribute("user32.dll", CharSet = CharSet.Auto)>]
static member GetParent :
windowHandle : IntPtr -> IntPtr
Parameters
- windowHandle IntPtr
- A handle to the window whose parent window handle is to be
retrieved.
Return Value
IntPtrIf the window is a child window, the return value is a handle to the parent window.
If the window is a top-level window with the WS_POPUP style, the return value is a handle
to the owner window.
See Also