资 源 简 介
在我的一个项目编制过程中,需要用到一个可以指定初始目录的目录选择对话框,起初我找到了http://www.vckbase.com/bbs/prime/viewprime.asp?id=94 这篇文章,发现由于"bi.pidlRoot"的格式不了解,很难实现这样的功能,后来在一个日本网站上找到了一篇文章,有示例代码和相关说明(现在网址找不到了,抱歉,以后找到了再加上),利用回调函数解决了此问题,现在我把示例程序做出来,有相关Puzzle的同仁可以参考一下. 注: 1.重要的函数和宏定义在"global.h"中,函数调用在"SHFolderDlg.cpp"中的"void CSHFolderDlg::OnClick_SHBrowseForFolder()"中,重要的部分我说明了一下,写的不好请大家原谅. 2.原来文章中的程序是有日文注释的,在我的朋友陈伟林帮助下写成了中文,在此向他表示感谢.-a project preparation process, the need to resort to an initial list can specify the directory to choose dialog, I initially found http://www.vckbase.com/bbs/prime/viewprime.asp id = 94 article, it is found that "bi . pidlRoot "format, it should not be difficult to achieve such a function and later in a Japanese website found an article with sample code and related (not a web site now, sorry, after finding a plus), using a callback function to solve this problem, I shall now examples of procedures done, the relevant Puzzle colleagues for reference. Note : 1. important functions and ma