Using Text Bullets in a Rich Edit Control

Last reviewed: September 29, 1995
Article ID: Q129859
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API) included with:

        - Microsoft Windows NT version 3.51
        - Microsoft Windows 95 version 4.0
        - Microsoft Win32s version 1.3
    

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
KBCategory: kbui
KBSubcategory: UsrCtl W32s


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 29, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.