I have tried everything ... read the MSDN, about this, I have read almost all the articles I could find on setting text bold in a rich edit control ...

Ok what happens is as follows ....

CHARFORMAT2 chfFmt;

m_RichEditCtrl.SetSel(0, 5);

chfFmt.dwMask = CFM_BOLD;
chfFmt.dwEffects = CFE_BOLD;

m_RichEditCtrl.SetSelectionCharFormat(chfFmt);

<- this will result in

HERE IS MY TEXT IN MY TEXTBOX

The first few characters are now bold ...

Now I try doing this ...


CHARFORMAT2 chfFmt;

m_RichEditCtrl.SetSel(0, 5);

chfFmt.dwMask = 0;
chfFmt.dwEffects = 0;

m_RichEditCtrl.SetSelectionCharFormat(chfFmt);

but the result is that the BOLD text did not return back to normal text it still gives me

HERE IS MY TEXT IN MY TEXTBOX

How do I remove bold text, when it was normal, and setting it back to normal, to actually go back to normal, or "unbold" the characters ... ?

Thanx in advance ...

xIRC