修改 Window Title 为当前目录 在CTestingView.OnInitialUpdate()添加 //得到当前目录 CString strCurrentPath; GetCurrentDirectory(200,strCurrentPath.GetBuffer(200)); strCurrentPath.ReleaseBuffer(); AfxGetMainWnd()->SetWindowText(_T(strCurrentPath) );