摘 要: 在VS2010开发平台上以MFC基于对话框为开发框架,实现对指定目录路径的自动保存,并在该路径下根 据选择的文件类型,进行快速检索的功能。实现逻辑为读取EDIT控件上的路径,然后调用MFC基类CFileFind的成员函 数,遍历该路径下的所有文件,并将文件名等相关数据同步到Report格式的List控件中,最后通过鼠标双击响应函数来 调用系统API函数ShellExecute()打开指定文件。 |
关键词: MFC;List控件;遍历;软件开发;文件查找 |
中图分类号: TP311.5
文献标识码: A
|
|
Software Development of Fast File Searching Based on MFC |
LI Chuanke
|
( Shanghai University of Political Science and Law, Shanghai 201701, China)
|
Abstract: 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(). |
Keywords: MFC;List control;traversal;software development;file search |