CRichEdit.DisplayBandmethod
Displays a portion of the contents of a rich edit control, as previously formatted for a device using the EM_FORMATRANGE message.
Syntax
FUNCTION DisplayBand (BYVAL hRichEdit AS HWND, BYVAL lprc AS RECT PTR) AS LONG
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
lprc | A pointer to a RECT structure specifying the display area of the device. |
Return value
If the operation succeeds, the return value is TRUE.
If the operation fails, the return value is FALSE.
Description
Displays a portion of the contents of a rich edit control, as previously formatted for a device using the EM_FORMATRANGE) message.
Remarks
Text and Component Object Model (COM) objects are clipped by the rectangle. The application does not need to set the clipping region.
Banding is the process by which a single page of output is generated using one or more separate rectangles, or bands. When all bands are placed on the page, a complete image results. This approach is often used by raster printers that do not have sufficient memory or ability to image a full page at one time. Banding devices include most dot matrix printers as well as some laser printers.
Reference
- Defined in AfxNova/CRichEdit.inc:274
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class