Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.DrawTextCoords Method

The DrawText function draws formatted text in the specified rectangle. It formats the text according to the specified method (expanding tabs, justifying characters, breaking lines, and so forth).

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