一个基于Dialog的对话框,放入一个Rich Edit 2.0 Control,
(其他都不作改动)对话框就不显示了呢?

解决方案 »

  1.   

    用Wizard创建了以后什么都不动,直接放一个Rich Edit 2.0 Control。对话框就不显示了
      

  2.   

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

  3.   

    原来是这样:(受了启发,查到了)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.
    知道了,谢谢!
      

  4.   

    http://expert.csdn.net/Expert/topic/1405/1405001.xml?temp=.3585626
    呵哈哈,破例答一次。