A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



WindowFromDC

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.

VB4-32,5,6
Declare Function WindowFromDC Lib "user32" (ByVal hdc As Long) As Long

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
User32

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

Return Values
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.

Last update: 07 April 2006