Freigeben über


CRecentFileList::Add

Adds a file to the most recently used (MRU) file list.

virtual void Add(
   LPCTSTR lpszPathName 
);
virtual void Add(
   LPCTSTR lpszPathName,
   LPCTSTR lpszAppID
);
void Add(
   IShellItem* pItem,
   LPCTSTR lpszAppID
);
void Add(
   IShellLink* pLink,
   LPCTSTR lpszAppID
);
void Add(
   PIDLIST_ABSOLUTE pidl,
   LPCTSTR lpszAppID
);

Parameters

  • lpszPathName
    Specifies pathname to be added to the list.

  • lpszAppID
    Specifies Application User Model ID for the application.

  • pItem
    Specifies a pointer to Shell Item to be added to the list.

  • pLink
    Specifies a pointer to Shell Link to be added to the list.

  • pidl
    Specifies the IDLIST for the shell item that should be added to the recent docs folder.

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

Reference

CRecentFileList Class

Hierarchy Chart

CRecentFileList::Remove

CRecentFileList::UpdateMenu

Other Resources

CRecentFileList Members