Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.SetRect Method

The SetRect function sets the coordinates of the specified rectangle. This is equivalent to assigning the left, top, right, and bottom arguments to the appropriate members of the RECT structure.

Syntax
Public Sub SetRect (ByRef lpRect As RECT, _
ByVal X1 As Long, _
ByVal y1 As Long, _
ByVal X2 As Long, _
ByVal y2 As Long)
Parameters
Parameter Description
ByRef lpRect As RECT Pointer to the RECT structure that contains the rectangle to be set.
ByVal X1 As Long Specifies the x-coordinate of the rectangle's upper-left corner.
ByVal y1 As Long Specifies the y-coordinate of the rectangle's upper-left corner.
ByVal X2 As Long Specifies the x-coordinate of the rectangle's lower-right corner.
ByVal y2 As Long Specifies the y-coordinate of the rectangle's lower-right corner.
Remarks
Because applications can use rectangles for different purposes, the rectangle functions do not use an explicit unit of measure. Instead, all rectangle coordinates and dimensions are given in signed, logical values. The mapping mode and the function in which the rectangle is used determine the units of measure.