Using Text Bullets in a Rich Edit ControlLast reviewed: September 29, 1995Article ID: Q129859 |
The information in this article applies to:
The Rich Edit control contains a built-in text bullet feature that is used to add paragraph bullets to the text. To use this feature, you must send the Rich Edit control a EM_SETPARAFORMAT message. The EM_SETPARAFORMAT message takes a pointer to a PARAFORMAT structure as its lParam parameter. In the PARAFORMAT structure, it is necessary to zero out the structure and fill in the following members:
UINT cbSize - Contains the size of the structure. Use sizeof(PARAFORMAT). DWORD dwMask - Contains the attributes to set. For bullets, use PFM_NUMBERING | PFM_OFFSET. WORD wNumbering - Contains the value that specifies numbering options. For bullets, set this member equal to PFN_BULLET. LONG dxOffset - Contains the value that specifies indentation of the second line and subsequent lines, relative to the starting indentation. For bullets, this value must be positive because the bullet is displayed in the area between the starting indentation and the offset. If this value is too small, the bullets are not displayed. |
Additional reference words: 1.30 4.00 95
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |