MFC应用程序放置rich edit 2.0 control控件,对话框就不显示

来源:互联网 发布:mac 蓝光播放器 编辑:程序博客网 时间:2024/06/07 19:25

出处:http://bbs.csdn.net/topics/20383900

解决办法:

Caution   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.


在CMyApp::InitInstance()中加上这条语句
AfxInitRichEdit();

今天遇到这个问题,特此记录!

0 0