to yzwpf(): 就是在程序中打开某文件夹,但要求该文件夹以“缩略图”显示。to zhucde(【風間苍月】)(MVP) 关于shellexecute,恐怕没有我要的方式。期待其他解决方法。to zhangnanonnet(鱼欢) 我还是希望能使用window的文件夹打开。
看这两个部分把 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/UserInput/CommonDialogBoxLibrary/CommonDialogBoxReference/CommonDialogBoxStructures/OPENFILENAME.asp 设置: Explorer-Stylehttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/UserInput/CommonDialogBoxLibrary/AboutCommonDialogBoxes/OpenandSaveAsDialogBoxes.asp很复杂,要提取显示文件名称的ListBox控件 控件ID 用途 lst1 List box that displays the contents of the current drive or folder
here is a sample http://www.pconline.com.cn/pcedu/empolder/gj/vc/0311/244312.html
to happy__888([顾问团]寻开心): 你给的http://www.pconline.com.cn/pcedu/empolder/gj/vc/0311/244312.html里的例子 编译不过。其中一些以SH开头的函数: undeclared identifier. 看了msdn,部分函数在文件shlobj.h里面,但是我的shlobj.h怎么没有这些函数申明啊。 对window shell我不熟,请再看一下,谢谢。
SHELLEXECUTEINFO ShExecInfo ={0};
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.fMask = SEE_MASK_FLAG_NO_UI ;
ShExecInfo.hwnd = NULL;
ShExecInfo.lpVerb = "open";
ShExecInfo.lpFile = "c:\\";
ShExecInfo.lpParameters = "";
ShExecInfo.lpDirectory = NULL;
ShExecInfo.nShow = SW_SHOW;
ShExecInfo.hInstApp = NULL;
ShellExecuteEx(&ShExecInfo);看了半天没有找到关于用什么方式打开文件夹的属性.
看了还是得用某个API来改变文件夹显示的方式,
而不是在打开的时候指定的.
就是在程序中打开某文件夹,但要求该文件夹以“缩略图”显示。to zhucde(【風間苍月】)(MVP)
关于shellexecute,恐怕没有我要的方式。期待其他解决方法。to zhangnanonnet(鱼欢)
我还是希望能使用window的文件夹打开。
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/UserInput/CommonDialogBoxLibrary/CommonDialogBoxReference/CommonDialogBoxStructures/OPENFILENAME.asp
设置: Explorer-Stylehttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/UserInput/CommonDialogBoxLibrary/AboutCommonDialogBoxes/OpenandSaveAsDialogBoxes.asp很复杂,要提取显示文件名称的ListBox控件
控件ID 用途
lst1 List box that displays the contents of the current drive or folder
http://www.pconline.com.cn/pcedu/empolder/gj/vc/0311/244312.html
你给的http://www.pconline.com.cn/pcedu/empolder/gj/vc/0311/244312.html里的例子
编译不过。其中一些以SH开头的函数: undeclared identifier. 看了msdn,部分函数在文件shlobj.h里面,但是我的shlobj.h怎么没有这些函数申明啊。 对window shell我不熟,请再看一下,谢谢。
http://www.csdn.net/develop/read_article.asp?id=22243
这篇文章描述了如何利用ListView控件自己实现缩略图
如果你要使用资源管理器打开文件夹,那么只有在WindowsXP或者Windows.Net下可以用IFolderView接口控制视图的显示方式。