User32WindowFromDC Method
Returns a handle to the window associated with the specified display device context (DC).
Output functions that use the specified device context draw into this window.
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", ExactSpelling = true)]
public static IntPtr WindowFromDC(
IntPtr hDC
)
<DllImportAttribute("User32.dll", ExactSpelling := true>]
Public Shared Function WindowFromDC (
hDC As IntPtr
) As IntPtr
Dim hDC As IntPtr
Dim returnValue As IntPtr
returnValue = User32.WindowFromDC(hDC)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true)]
static IntPtr WindowFromDC(
IntPtr hDC
)
[<DllImportAttribute("User32.dll", ExactSpelling = true)>]
static member WindowFromDC :
hDC : IntPtr -> IntPtr
No code example is currently available or this language may not be supported.
- hDC IntPtr
-
Handle to the device context from which a handle to the associated window is to be retrieved.
IntPtr
The return value is a handle to the window associated with the specified DC.
If no window is associated with the specified DC, the return value is
Zero.