Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.CreateColorPen Function

Creates a GDI pen using a specified color

Syntax
Public Function CreateColorPen (ByVal nPenStyle As Long, _
ByVal nWidth As Long, _
ByVal lColor As Long) As Long
Parameters
Parameter Description
ByVal nPenStyle As Long A combination of flags [eCtlLineStyle]
ByVal nWidth As Long Width in pixel of the pen
ByVal lColor As Long Color
Remarks
You must release the object with the [DeleteObject] function when the created pen is useless