WindowFromDC function user32

int WindowFromDC(
  1. int hDC
)

The WindowFromDC function 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.

HWND WindowFromDC(
  HDC hDC
);

Implementation

int WindowFromDC(int hDC) => _WindowFromDC(hDC);