void fff::hehe(str){
CEdit& theEdit = GetEditCtrl();
int length=theEdit.GetWindowTextLength();
theEdit.SetSel(length,length);
theEdit.ReplaceSel(str);//CString yourtext;}我在分裂窗口的另一个View中用
myfff.hehe(str);发生异常 ASSERT(::IsWindow(m_hWnd) || (m_pCtrlSite != NULL));不知道是什么原因?
CEdit& theEdit = GetEditCtrl();
int length=theEdit.GetWindowTextLength();
theEdit.SetSel(length,length);
theEdit.ReplaceSel(str);//CString yourtext;}我在分裂窗口的另一个View中用
myfff.hehe(str);发生异常 ASSERT(::IsWindow(m_hWnd) || (m_pCtrlSite != NULL));不知道是什么原因?
CMainFrame* pMF=(CMainFrame*)AfxGetMainWnd();
CFormView* pFV=(CFormView*)pMF->m_SplitterWnd.GetPane(0,0);
CEdit& theEdit=pFV->GetEditCtrl();