Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.DrawTextColor Method

Draws formatted text in the specified rectangle using a specified color

Syntax
Public Sub DrawTextColor (ByVal lHdc As Long, _
ByRef s As String, _
ByRef r As RECT, _
ByRef lForeColor As Long, _
Optional ByVal wFormat As Long = CTL_DT_TOP)
Parameters
Parameter Description
ByVal lHdc As Long The destination Device Context
ByRef s As String String to draw
ByRef r As RECT The rectangle coords
ByRef lForeColor As Long Text color
Optional ByVal wFormat As Long = CTL_DT_TOP A combination of [eCtlDrawTextFormat] flags
Remarks