DrawWrappedTextA

Text, Page layout

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to DrawWrappedText and string arguments are interpreted using the current SetAnsiMode code page

Draw text which is wrapped to a certain width. The SetTextAlign function can be used to change the alignment of the text. The SetBreakString function can be used to set the delimiter for the linebreak. The default is CR / LF pair. On some systems a LF may be default.

Syntax

Delphi

Function DLDrawWrappedTextA(InstanceID: Integer; XPos, YPos, Width: Double; Text: PAnsiChar): Integer;

DLL

int DLDrawWrappedTextA(int InstanceID, double XPos, double YPos, double Width, const char * Text);

Parameters

XPosThe left edge of the text block The baseline of the first line of text
YPos
WidthThe width of the text block
TextThe text to draw