修改 Window Title 为当前目录

在CTestingView.OnInitialUpdate()添加

 //得到当前目录
 CString strCurrentPath;
 GetCurrentDirectory(200,strCurrentPath.GetBuffer(200));
 strCurrentPath.ReleaseBuffer();
 AfxGetMainWnd()->SetWindowText(_T(strCurrentPath) );
原文地址:https://www.cnblogs.com/cy163/p/564247.html