GXGetMultiLineTextBreakCount
int GXGetMultiLineTextBreakCount(CDC* pDC, LPCTSTR lpszString, int nCount, CRect rc, UINT nFormat);
pDC
Points to the device context.
lpszString
Points to the text to be drawn.
nCount
Specifies the size of the text in bytes. You should pass -1 for a zero-terminated string.
rc
Drawing rectangle.
nFormat
-
Format:
- DT_LEFTleft aligned
- DT_CENTERcentered
- DT_RIGHTright aligned
- DT_TOPtop aligned
- DT_VCENTERvertically centered
- DT_BOTTOMbottom aligned
DT_WORBREAKword break
Return Value
The number of line breaks.
Remarks
This method returns the number of line breaks for a given so that it can draw into a given rectangle. The method calls GXComputeLineBreaks and returns the number of breaks.
See Also
CGXDrawingAndFormatting GXComputeLineBreaks