I have created a bullet list in my rich edit control, but I am facing below issue which I am trying to tell you in a sequence.
- press a bullet button to generate a bullet.
- Bullet list/paragraph will start like MS word.
- save the document.
- Reload the same doc --> Now it is behaving strangely. It adds protection around bullet due to which user cannot delete bullet, also paragraph will not be maintained, a user needs to click again on the bullet button to start bullet paragraph.
see the code below:
code sample
PARAFORMAT Pfm;
richedit->GetParaFormat(Pfm);
Pfm.cbSize = sizeof(PARAFORMAT);
Pfm.dwMask = PFM_NUMBERING;
Pfm.wNumbering = PFN_BULLET;
richedit->SetParaFormat(Pfm);
richedit->SetFocus();