WindowFromDC

  HWND WindowFromDC(hdc)    
  HDC hdc;    

WindowFromDC returns the window associated with the passed display context. Any output functions to this display context will draw into this window.

Parameters

hdc

Identifies the display context whose associated window is to be retrieved.

Return Value

If the function succeeds, the return value identifies the window associated with the given display context. Otherwise, the return value is NULL.

See Also

GetDC