Unicode Controls & Classes for VB6 - Version 4

clsScreens.GetMonitorHandleFromWindow Function

Returns the handle of the monitor that contains the specified window; returns 0 if the monitor has not been found

Syntax
Public Function GetMonitorHandleFromWindow (ByVal hWnd As Long) As Long
Parameters
Parameter Description
ByVal hWnd As Long The window handle
Remarks