change Font Size & Color of Rich Edit during runtime
Posted on 1998-02-18
I want to develop a dialog based application with an rich edit control, whose Font Size and Color can be changed by pressing Buttons. I use the CHARFORMAT, SetDefaultCharFormat, SetSelCharFormat, and a custom function:
cf.cbSize = sizeof(CHARFORMAT);
cf.dwMask = CFM_BOLD|CFM_COLOR;
cf.yHeight = ...
After complier it, there appears a big "I" when the rich edit get focus. Moreover, the editor does not accept any input. What's wrong with it? Or someone can tell me another way to do the task?