I have a problem, I have made this piece of code:

mov cf.cbSize, sizeof cf
mov cf.dwMask, CFM_BOLD
mov cf.dwEffects, CFE_BOLD
invoke SendMessage,hRichEd,EM_SETCHARFORMAT,SCF_SELECTION,addr cf

But now everything i Type will be Bold so how can set this thing off so i can write normal again.
(turn the bold status off and on)
Posted on 2003-03-04 08:11:49 by Bolle
Hi Bolle

Just guessing, try this:

mov cf.cbSize, sizeof cf
mov cf.dwMask, CFM_BOLD
mov cf.dwEffects, NULL
invoke SendMessage,hRichEd,EM_SETCHARFORMAT,SCF_SELECTION
,addr cf

KetilO
Posted on 2003-03-04 09:09:17 by KetilO
Thanks, it works :D:D
Posted on 2003-03-06 07:07:02 by Bolle
A quote from MSDN (I had the same question as you, until I read this)

Remarks

If this message is sent more than once with the same parameters, the effect on the text is toggled. That is, sending the message once produces the effect, sending the message twice cancels the effect, and so forth.
Posted on 2003-03-06 09:25:49 by gorshing