请问各位高手如何在(通过SHBrowseForFolder显示的)浏览目录对话框上增加一个New folder 按钮
解决方案 »
- 关于dwFileAttibutes及安全删除U盘
- 如何实现端口转发
- 弹出菜单是一种窗口,hMenu和hWnd是不同的数值,WindowFromPoint可以得到其hWnd,怎样得到其hMenu?
- 请问有动态多维数组类型吗?
- LoadStringW和LoadStringA有什么区别啊?谢谢!
- 画直线时橡皮筋弄得客户区闪烁不停,怎么改善?
- ImageList.Create
- 如何延时30秒
- vs2008 team suite启动性能分析后蓝屏的问题
- MFC 用户界面线程消息循环问题
- VC中创建一ACESESS数据库,如何改变其中某表某字段的长度
- “烦就一个字 我只说一次” 如何以最快的速度将数组里的图象信息显示在屏幕上
我的却不行:(我不import "shell32.dll"就报语法错,一加上又提示打不开此资源(文件是存在的,不然就会报文件不存在错误了)。
怎么回事呀?
BROWSEINFO bi;
char Buffer[MAX_PATH]; bi.hwndOwner = NULL;
bi.pidlRoot = NULL;
bi.pszDisplayName = Buffer;
bi.lpszTitle = "Test";
bi.ulFlags = 0;
bi.lpfn = NULL;
bi.iImage=IDI_PATH;
bi.ulFlags=BIF_NEWDIALOGSTYLE;然后使用SHBrowseForFolder函数就可以了。
MSDN下是这样说得:
BIF_NEWDIALOGSTYLE
Version 5.0. Use the new user interface. Setting this flag provides the user with a larger dialog box that can be resized. The dialog box has several new capabilities including: drag and drop capability within the dialog box, reordering, shortcut menus, new folders, delete, and other shortcut menu commands. To use this flag, you must call OleInitialize or CoInitialize before calling SHBrowseForFolder.