请问vc中的richedit控件该怎么使用
我在一个对话框上加入了一个richedit
没有写任何代码
但是在运行的时候对话框却显示不出来
请问该写什么代码
才可以使对话框显示出来
谢谢
richedit该怎么使用

解决方案 »

  1.   

    只要加这句就够了,放在InitInstance函数里就可以了!
      

  2.   

    MSDN里面CRichEditCtrl文档的Overview里面
    Important   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.
      

  3.   

    InitInstance 里加上初试化 AfxInitRichEdit();