求大神帮忙,mfc中如何用shellexecute调用Win
mfc吧
全部回复
仅看楼主
level 4
紫82813 楼主
求大神帮忙,mfc中如何用shellexecute调用Windows中的图片查看器查看图片。
2017年11月07日 07点11分 1
level 1
BOOL CCanonSettingPage::PictureWindows(CString strPicFile)
{
CString strSystemDir = _T("");
::GetSystemDirectory(strSystemDir.GetBuffer(256), 256);
strSystemDir.ReleaseBuffer(); CString strRundll = strSystemDir + _T("\\rundll32.exe "); CString strParm;
strParm.Format(_T("%s\\shimgvw.dll ImageView_Fullscreen %s"), strSystemDir, strPicFile); ShellExecute(NULL, _T("open"), strRundll, strParm, _T(""), SW_SHOWNORMAL);
return TRUE;
}
2017年12月14日 06点12分 2
1