Unicode Controls & Classes for VB6 - Version 4

clsScreens.GetMonitorHandleFromRect Function

Returns the handle of the monitor from a given rectangle; returns 0 if the monitor has not been found

Syntax
Public Function GetMonitorHandleFromRect (ByRef X1 As Long, _
ByRef y1 As Long, _
ByRef X2 As Long, _
ByRef y2 As Long) As Long
Parameters
Parameter Description
ByRef X1 As Long Specifies the x-coordinate of the rectangle's upper-left corner.
ByRef y1 As Long Specifies the y-coordinate of the rectangle's upper-left corner.
ByRef X2 As Long Specifies the x-coordinate of the rectangle's lower-right corner.
ByRef y2 As Long Specifies the y-coordinate of the rectangle's lower-right corner.
Remarks