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.
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. |
EM_GETPARAFORMAT, EM_SETPARAFORMAT
Questions: