this-> SetWindowText( "文字"); //新建的dialog CWnd *m_pMainWnd; m_pMainWnd = AfxGetMainWnd(); m_pMainWnd->SetWindowText(_T("文字")); //原始dialog