The PARAFORMAT structure contains information about paragraph formatting attributes in a rich edit control. This structure is used with the EM_GETPARAFORMAT and EM_SETPARAFORMAT messages.
Rich Edit 2.0: The PARAFORMAT2 structure is a rich edit 2.0 extension of the PARAFORMAT structure. Rich edit 2.0 allows you to use either structure with EM_GETPARAFORMAT and EM_SETPARAFORMAT.
typedef struct _paraformat {
UINT cbSize;
_WPAD _wPad1;
DWORD dwMask;
WORD wNumbering;
WORD wReserved;
LONG dxStartIndent;
LONG dxRightIndent;
LONG dxOffset;
WORD wAlignment;
SHORT cTabCount;
LONG rgxTabs[MAX_TAB_STOPS];
} PARAFORMAT;
Value | Meaning |
---|---|
PFM_ALIGNMENT | The wAlignment member is valid. |
PFM_NUMBERING | The wNumbering member is valid. |
PFM_OFFSET | The dxOffset member is valid. |
PFM_OFFSETINDENT | The dxStartIndent member is valid and specifies a relative value. |
PFM_RIGHTINDENT | The dxRightIndent member is valid. |
PFM_STARTINDENT | The dxStartIndent member is valid. |
PFM_TABSTOPS | The cTabStobs and rgxTabStops members are valid. |
If both PFM_STARTINDENT and PFM_OFFSETINDENT are specified, PFM_STARTINDENT takes precedence.
Value | Meaning |
---|---|
PFA_LEFT | Paragraphs are aligned with the left margin. |
PFA_RIGHT | Paragraphs are aligned with the right margin. |
PFA_CENTER | Paragraphs are centered. |
Windows NT: Requires version 3.51 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in richedit.h.
Rich Edit Controls Overview, Rich Edit Structures, EM_GETPARAFORMAT, EM_SETPARAFORMAT, PARAFORMAT2