我在一个CEditView的SDI中调用了一个dll,已经把SDI的主窗口视图指针pView传给了dll,
以下是dll的部分代码:         CString str;
pView->GetWindowText(str);
         str+="hello!";
pView->SetWindowText(str);
CEdit &editCtrl=pView->GetEditCtrl();   
editCtrl.SetSel(str.GetLength(),str.GetLength(), FALSE); //把光标移至字符串末尾前4行代码都正确,str也显示在窗口里了,但是第5行错误如下:         error C2039: 'GetEditCtrl' : is not a member of 'CView'请问该怎么解决这个问题?能使光标移至字符串末尾呢?