long FormatRange( FORMATRANGE* pfr, BOOL bDisplay = TRUE );
Return Value
The index of the last character that fits in the region plus one.
Parameters
pfr
Pointer to the FORMATRANGE structure which contains information about the output device. NULL indicates that cached information within the rich edit control can be freed.
bDisplay
Indicates if the text should be rendered. If FALSE, the text is just measured.
Remarks
Call this function to format a range of text in a rich edit control for a specific device. Typically, this call is followed by a call to DisplayBand.
For more information, see EM_FORMATRANGE message and FORMATRANGE structure in the Win32 documentation.
CRichEditCtrl Overview | Class Members | Hierarchy Chart
See Also CRichEditCtrl::DisplayBand