如果是在对话框中使用Rich Edit控件,就必须在对话框显示之前调用AfxInitRichEdit(),在OnInitDialog() 中调用一下得了

解决方案 »

  1.   

    呵呵。
    把ES_AUTOHSCROLL风格去掉。
      

  2.   

    要初始化
    在InitInstance
    中加入AfxInitRichEdit
      

  3.   

    第二个问题,怎么能够设定RichEdit或者Edit的行宽??
      

  4.   

    第二个问题,怎么能够设定RichEdit或者Edit的行宽??
      

  5.   

    在InitInstance
    中加入AfxInitRichEdit
    并没有用,Window me系统下。
      

  6.   

    AfxInitRichEdit
    BOOL AFXAPI AfxInitRichEdit( );ResCall this function to initialize the rich edit control for the application. It will also initialize the common controls library, if the library hasn’t already been initialized for the process. If you use the rich edit control directly from your MFC application, you should call this function to assure that MFC has properly initialized the rich edit control runtime. If you use rich edit via CRichEditCtrl, CRichEditView, or CRichEditDoc, you don't need to call this function.
      

  7.   

    要初始化
    在InitInstance
    中加入AfxInitRichEdit这是正解!!!
      

  8.   

    LoadLibrary("RICHED32.DLL");
    是真正该执行的动作
      

  9.   

    1.大家都回答了 :)
    2.创建时不要有ES_AUTOHSCROLL, WS_HSCROLL属性。