Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.DrawTextColorCoords Method

Draws formatted text in the specified rectangle using a specified color

Syntax
Public Sub DrawTextColorCoords (ByVal lHdc As Long, _
ByRef s As String, _
ByVal X1 As Long, _
ByVal y1 As Long, _
ByVal X2 As Long, _
ByVal y2 As Long, _
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
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.
ByRef lForeColor As Long Text color
Optional ByVal wFormat As Long = CTL_DT_TOP A combination of [eCtlDrawTextFormat] flags
Remarks