解决方案: | |||||||||||
在CxxxApp类的InitInstance成员函数中加入AfxInitRichEdit() | |||||||||||
原因: | |||||||||||
msdn上如是说: 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. |
使用RichEdit控件程序启动不了
最新推荐文章于 2025-07-21 16:16:14 发布
