<< Return to Main Index

< Return to Class Index

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

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

Macros

Class Overview | Class Members