Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 961 Bytes

File metadata and controls

42 lines (28 loc) · 961 Bytes

Home

Function name : WindowFromDC

Group: Painting and Drawing - Library: user32


Returns a handle to the window associated with the specified display device context (DC).


Code examples:

Transparent Menu Class (requires VFP9)

Declaration:

HWND WindowFromDC(
	HDC hDC   // handle to device context
);  

FoxPro declaration:

DECLARE INTEGER WindowFromDC IN user32;
	INTEGER hDC  

Parameters:

hDC [in] Handle to the device context from which a handle to the associated window is to be retrieved.


Return value:

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 NULL.