共用方式為


CRecentFileList::Add

Adds the file whose path is given in lpszPathName to the most recently used (MRU) file list.

virtual void Add(
   LPCTSTR lpszPathName 
);

Parameters

  • lpszPathName
    Pathname to be added to the list.

Remarks

The file name will be added to the top of the MRU list. If the file name already exists in the MRU list, it will be moved to the top.

Requirements

Header: afxadv.h

See Also

Concepts

CRecentFileList Class

CRecentFileList Members

Hierarchy Chart

CRecentFileList::Remove

CRecentFileList::UpdateMenu