Inesoft
PrintCE SDK EVC++ |
int PDC_DrawTextFlow(
HDC hdc,
LPCTSTR lpString,
LPRECT lpRect,
UINT uFormat
);Parameters
hdc
[in] Handle to the device context.
lpszString
[in] Pointer to the string to be drawn.
lpRect
[in] Pointer to a RECT structure that contains the rectangle (in logical coordinates) in which the text is to be formatted.
uFormat
[in] Specifies the method of formatting the text. It can be any combination of the following values:
DT_BOTTOM - justifies the text to the bottom of the rectangle.
DT_CENTER - centers text horizontally in the rectangle.
DT_LEFT - aligns text to the left.
DT_RIGHT - aligns text to the right.
DT_TOP - top-justifies text.
DT_VCENTER - centers text vertically.
DT_WORDBREAK - breaks words.Return Values
Returns number of characters printed.
© 2009 Inesoft. All rights reserved.