Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.DrawRect Method

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

Syntax
Public Sub DrawRect (ByVal lHdc As Long, _
ByRef r As RECT, _
ByVal lColor As Long, _
ByVal bFilled As Boolean)
Parameters
Parameter Description
ByVal lHdc As Long The destination Device Context
ByRef r As RECT The rectangle coords
ByVal lColor As Long The border color or the background color
ByVal bFilled As Boolean Is the rectangle filled?
Remarks