EM_SETTYPOGRAPHYOPTIONS Message
The EM_SETTYPOGRAPHYOPTIONS message sets the current state of the typography options of 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_SETTYPOGRAPHYOPTIONS,
| // message ID
|
(WPARAM) wParam,
| // = (WPARAM) () wParam; |
(LPARAM) lParam
| // = (LPARAM) () lParam; |
);
| |
Parameters
- wParam
-
Specifies one of the following values.
- TO_ADVANCEDTYPOGRAPHY
- Advanced line breaking and line formatting is turned on.
- TO_SIMPLELINEBREAK
- Normal line breaking and formatting is used.
- lParam
-
A mask consisting of one or more of the flags in wParam. Only the flags are set in this mask will be set or cleared. This allows a single flag to be set or cleared without reading the current flag states.
Return Value
If an illegal wParam is passed, EM_SETTYPOGRAPHYOPTIONS returns FALSE.
If wParam is valid, the return value is TRUE.
Remarks
Advanced and normal line breaking may also be turned on automatically by the rich edit control if it is needed for certain languages.
Message Information
Header | Declared in Richedit.h |
---|
Minimum operating systems |
Windows
95 with Rich Edit 3.0, Windows NT
4.0 with Rich Edit 3.0, Windows
Millenium Edition, Windows
2000 |
---|
See Also
Rich Edit Controls, EM_GETTYPOGRAPHYOPTIONS