WindowFromDC

機能
デバイスコンテキストからウィンドウハンドルを取得
Declare Function WindowFromDC Lib "user32.dll"  _
(ByVal hDC As Long) As Long
Declare Function WindowFromDC Lib "user32.dll"  _
(ByVal hDC As Integer) As Integer

HWND WindowFromDC(
HDC hDC
);
引数
hDC

デバイスコンテキストのハンドル
戻り値
正常終了のとき  ウィンドウのハンドル
エラーのとき  0