Inesoft
PrintCE SDK EVC++ |
int PDC_GetTextFlowHeight(
HDC hdc,
LPCTSTR lpString,
int width,
UINT uFormat
);Parameters
hdc
[in] Handle to the device context.
lpszString
[in] Pointer to the string to be drawn.
lpRect
[in] Width for which the text height is calculated.
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 height of text.
© 2009 Inesoft. All rights reserved.