If you are using a rich edit control in a dialog box (regardless whether your application is SDI, MDI, or dialog-based), you must call AfxInitRichEdit once before the dialog box is displayed. A typical place to call this function is in your program's InitInstance member function. You do not need to call it for each time you display the dialog box, only the first time. You do not have to call AfxInitRichEdit if you are working with CRichEditView 至于你说的textbox是灰的,看是不是属性设置的问题。
richedit control 要在 CXXApp::InitInstance 中添加AfxInitRichEdit 方法
至于你说的textbox是灰的,看是不是属性设置的问题。
要在 CXXApp::InitInstance 中添加AfxInitRichEdit 方法