win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinWindowFromDC (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINWINDOWMGR
 
HWND WinWindowFromDC(hdc)
HDC hdc;    /* handle of the device context */
 
The WinWindowFromDC function is used to determine the window associated with
a window device context, given a device context handle returned by the
WinOpenWindowDC function. If the device context handle is not a window
device context, this function returns NULL.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hdc        Identifies the window device context.
 
Return Value
 
The return value is a window handle if the function is successful.
Otherwise, it is NULL, indicating that an error occurred.
 
See Also
 
WinOpenWindowDC