Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.DrawRectCoords Method

Draws a rectangle by using the specified color. The width and height of the border are always one logical unit.

Syntax
Public Sub DrawRectCoords (ByVal lHdc As Long, _
ByVal X1 As Long, _
ByVal y1 As Long, _
ByVal X2 As Long, _
ByVal y2 As Long, _
ByVal lColor As Long, _
ByVal bFilled As Boolean)
Parameters
Parameter Description
ByVal lHdc As Long The destination Device Context
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.
ByVal lColor As Long The border color or the background color
ByVal bFilled As Boolean Is the rectangle filled?
Remarks