The EM_SETCHARFORMAT message sets character formatting in a rich edit control.
EM_SETCHARFORMAT wParam = (WPARAM) (UINT) uFlags; lParam = (LPARAM) (CHARFORMAT FAR *) lpFmt;
Value |
Meaning |
SCF_ALL |
Applies the formatting to all text in the control. |
SCF_SELECTION |
Applies the formatting to the current selection. If the selection is empty, the character formatting is applied to the insertion point, and the new character format is in effect only until the insertion point changes. |
SCF_WORD | SCF_SELECTION |
Applies the formatting to the selected word or words. If the selection is empty but the insertion point is inside a word, the formatting is applied to the word. The SCF_WORD value must be used in conjunction with the SCF_SELECTION value. |
Returns a nonzero value if successful or zero otherwise.
file: /Techref/os/win/api/win32/mess/src/msg06_1.htm, 2KB, , updated: 2000/4/7 11:19, local time: 2024/11/25 02:36,
18.118.227.199:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/TECHREF/os/win/api/win32/mess/src/msg06_1.htm"> EM_SETCHARFORMAT</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.