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.
使用CRichEdit前需要调用AfxInitRichEdit();
最新推荐文章于 2021-11-19 10:27:52 发布
在对话框中使用富文本编辑控件时,必须在显示对话框之前调用AfxInitRichEdit一次进行初始化。通常将此调用放在程序的InitInstance成员函数中。只需在第一次显示对话框时调用,之后无需重复调用。
摘要由CSDN通过智能技术生成