Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.DrawText 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 DrawText (ByVal lHdc As Long, _
ByRef s As String, _
ByRef r As RECT, _
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
Optional ByVal wFormat As Long = CTL_DT_TOP A combination of [eCtlDrawTextFormat] flags
Remarks