CHARFORMAT cf; CRichEditCtrl& r = GetRichEditCtrl().GetSelectionCharFormat(cf); long iStart, iEnd; r.GetSel(iStart, iEnd); r.GetSelectionCharFormat(cf); cf.dwEffects ^= CFE_AUTOCOLOR; cf.crTextColor = RGB(163, 15, 200); //Choisi ta couleur cf.dwMask |= CFM_COLOR; r.SetSelectionCharFormat(cf);
B
BOURDAUDHUI
@BOURDAUDHUI
Posts
-
Changing the selection color of a CRichEditView -
CRichEditViewI make an editor with a CRichEditView, I want to add a page break function. How can I add a page break in this control ? I found a page break effect in PARAFORMAT2 but it's disable. Is someone have an idea ? Than you