DrawText
The OS/2 and Windows NT versions of this function differ as follows:
- Windows NT uses the last mnemonic on a line (the other
mnemonic characters are treated as normal characters); the OS/2 implementation
uses the first mnemonic as the mnemonic.
- Windows NT does not allow DT_MULTILINE to be mixed
with DT_BOTTOM or DT_VCENTER. The OS/2 implementation does.
- OS/2 does not support the Windows NT undocumented
DT_INTERNAL flag.
- The OS/2 version has the following new flags:
DT_AMPERSAND
Causes the ampersand to be recognized
as the mnemonic character instead of the tilde.
DT_MULTILINE
Enables WinDrawText to output two or more lines
of text in one operation. DT_MULTILINE is mutually exclusive with DT_SINGLELINE
and DT_ERASERECT; if used in combination with these, the result is undefined.
DT_NOCLIP
Text is not clipped
to the rectangle passed in. Can improve performance and alter the text
output.
DT_OPAQUE
Causes
the text background rectangle to be filled with the background color.
DT_SINGLELINE
Causes linefeeds and carriage returns to be treated
like normal characters.
DT_VERTICALEXTENT
If
DT_LINEEXTENT is set, WinDrawText and DrawText returns the height of text
drawn (or potentially drawn) instead of the number of characters printed.
In OS/2,
the DT_EXTERNALLEADING flag might affect how text is drawn if the font used
has an non-zero external leading value, especially if multiple lines of
text are output (DT_MULTILINE). Previously, this flag affected only the
extent of the rectangle returned when DT_QUERYEXTENT was set.
[Back: DllEntryPoint]
[Next: DuplicateHandle]