UGN Security

Help With CRichEditView

Posted By: Kimm

Help With CRichEditView - 04/08/04 11:39 PM

ok, I need some help with a problem. I am creating a text editor using the MFC library (Visual C++ 6) using the Rich Edit View. I know how to change the font of the text, and how to make it italic, underlined bold and all. But what I dont know is, how do I select a spesific part of the text and change that font of that part only?
and how do set the alignment?

this is my code for changing the font:

CFont *myFont = new CFont();
myFont->CreateFont(24, 24, 24, 24, FW_NORMAL, 0, 0, 0, 0, 0, 0, 0, 0, "Times New Roman");
© 2018 UGN Security Forum