SetWidnowText
或GetEditCtrl
再用CEditCtrl的方法来实现
pDC->TextOut被上面的EditCtrl给挡住了。

解决方案 »

  1.   

    用基类的SetWindowText。
    MSDN :
    To set and retrieve text ,use the CWnd member functions SetWindowText and GetWindowText, which set or get the entire contents of an edit control, even if  it is a multiline control.  
    CEditView使用的是编辑控件提供多行文本操作。你能在编辑控件里面使用TextOut()吗?
      

  2.   

    CEditView 就要充分发挥 Edit 的优势!void TextOut(CString strOut)
    {
    int len = GetWindowTextLength(); GetEditCtrl().SetSel(len,len);
    GetEditCtrl().ReplaceSel("\r\n", TRUE);
    GetEditCtrl().SetSel(len , len );
    GetEditCtrl().ReplaceSel(strOut, TRUE);
    }
      

  3.   

    那么该在什么地方调用呢!?
    不是在CMyEditView::OnDraw()函数中么?