EM_GETPARAFORMAT Message
The EM_GETPARAFORMAT message retrieves the paragraph formatting of the current selection in a rich edit control.
Syntax
To send this message, call the
SendMessage
function as follows.
lResult = SendMessage(
| // returns LRESULT in lResult
|
(HWND) hWndControl,
| // handle to destination control
|
(UINT) EM_GETPARAFORMAT,
| // message ID
|
(WPARAM) wParam,
| // = (WPARAM) () wParam; |
(LPARAM) lParam
| // = (LPARAM) () lParam; |
);
| |
Parameters
- wParam
-
This parameter is not used; it must be zero.
- lParam
-
Pointer to a PARAFORMAT structure that receives the paragraph formatting attributes of the current selection.
If more than one paragraph is selected, the structure receives the attributes of the first paragraph, and the dwMask member specifies which attributes are consistent throughout the entire selection.
Microsoft® Rich Edit 2.0 and later: This parameter can be a pointer to a PARAFORMAT2 structure, which is an extension of the PARAFORMAT structure. Before sending the EM_GETPARAFORMAT message, set the structure's cbSize member to indicate the version of the structure.
Return Value
This message returns the value of the dwMask member of the PARAFORMAT structure.
Message Information
Header | Declared in Richedit.h |
---|
Minimum operating systems |
Windows
95, Windows NT
4.0 |
---|
See Also
Rich Edit Controls, PARAFORMAT, PARAFORMAT2