修改 Window Title 为当前目录

在CTestingView.OnInitialUpdate()添加

 //得到当前目录
 CString strCurrentPath;
 GetCurrentDirectory(200,strCurrentPath.GetBuffer(200));
 strCurrentPath.ReleaseBuffer();
 AfxGetMainWnd()->SetWindowText(_T(strCurrentPath) );

posted on 2006-11-18 07:15  cy163  阅读(348)  评论(0编辑  收藏  举报

导航