如题.谢谢!

解决方案 »

  1.   

    CEditView::GetEditCtrl()返回一个CEdit控件的引用
      

  2.   

    the example copy from msdnCMyEditView::OnInitialUpdate()
    {
       // get the edit control and set some initial properties for it
       CEdit& theEdit = GetEditCtrl();   // adjust the left margin without changing the right margin
       DWORD dwMargins = theEdit.GetMargins();
       theEdit.SetMargins(20, HIWORD(dwMargins));   // only accept 10k of text
       theEdit.SetLimitText(10 * 1024);
    }
      

  3.   

    晕呀,在我的VC6E上,这句CEdit& theEdit = GetEditCtrl();编译不了, 它说没有拷贝构造函数.还有,我是想在里面输入文字,到客户区的最右边时它不换行,而是出来个滚动条继续向右写,怎么办?
      

  4.   

    在PreCreateWindow加上这句,希望对别人有用.结贴了.
    cs.style |= WS_HSCROLL|ES_AUTOHSCROLL;