摘要
在VS2010开发平台上以MFC基于对话框为开发框架,实现对指定目录路径的自动保存,并在该路径下根据选择的文件类型,进行快速检索的功能。实现逻辑为读取EDIT控件上的路径,然后调用MFC基类CFileFind的成员函数,遍历该路径下的所有文件,并将文件名等相关数据同步到Report格式的List控件中,最后通过鼠标双击响应函数来调用系统API函数ShellExecute()打开指定文件。
In Visual Studio 2010 platform,use dialog-based MFC as developing frame,to realize the auto-saving of the specified path to configurate file and quick search in accordance with the selected file types through such path.After reading the path of Edit Control,call member function of CFileFind Class to traverse all files under that path,then copy file names and other related data to list control in LVS_REPORT Mode.Lastly call the ShellExecute API function on the MouseEvent function with Double-Clicking to open selected file by ShellExecute().
作者
李传可
LI Chuanke(Shanghai University of Political Science and Law,Shanghai 201701,China)
出处
《软件工程》
2019年第4期10-12,共3页
Software Engineering