1 文件定位功能实现
CString strPicPath;
strPicPath = alarmlist->GetItemText(nItem, 3);//此时 strPicPath值为:“d://123.bmp”
strPicPath="/e,/select,"+strPicPath;
方法1: ShellExecute(NULL,"open","explorer.exe",strPicPath,NULL,SW_SHOW);//就是利用Explorer.exe有个/select参数
方法2: ShellExecute(NULL,NULL,"explorer",strPicPath,NULL,SW_SHOW);
文件定位方法
691

被折叠的 条评论
为什么被折叠?



