CFileDialog – 青春部落,流年似水 http://www.youthtribe.com 青春是一场远行,总记不起来时的路。 Sat, 10 May 2014 07:01:52 +0000 zh-CN hourly 1 https://wordpress.org/?v=6.1.7 CFileDialog – 青春部落,流年似水 http://www.youthtribe.com/archives/1130 http://www.youthtribe.com/archives/1130#respond Thu, 08 May 2014 07:52:38 +0000 http://www.youthtribe.com/?p=1130 CFileDialog infofile(FALSE,NULL,"请输入要保存的模板名称",OFN_HIDEREADONLY|OFN_OVERWRITEPROMPT|OFN_NOCHANGEDIR, "TPL文件(*.tpl)|*.TPL| |",AfxGetMainWnd()); infofile.m_ofn.lpstrInitialDir = "c:\\"; CString strTplFileName; if(infofile.DoModal()==IDOK) { strTplFileName=infofile.GetPathName()+".tpl"; }

这样就能保存到c盘下了。

]]>
http://www.youthtribe.com/archives/1130/feed 0