◄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 ♦