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:

Code
CFont *myFont = new CFont();
myFont->CreateFont(24, 24, 24, 24, FW_NORMAL, 0, 0, 0, 0, 0, 0, 0, 0, "Times New Roman");
    ((CRichEditView*)GetActiveView())->SetFont(myFont);
pray


Knowledge is power