Export (0) Print
Expand All

CRecentFileList Class

Supports control of the most recently used (MRU) file list.

class CRecentFileList

Name

Description

CRecentFileList::CRecentFileList

Constructs a CRecentFileList object.

Name

Description

CRecentFileList::Add

Adds a file to the MRU file list.

CRecentFileList::GetDisplayName

Provides a display name for menu display of an MRU filename.

CRecentFileList::GetSize

Retrieves the number of files in the MRU file list.

CRecentFileList::ReadList

Reads the MRU file list from the registry or .INI file.

CRecentFileList::Remove

Removes a file from the MRU file list.

CRecentFileList::UpdateMenu

Updates the menu display of the MRU file list.

CRecentFileList::WriteList

Writes the MRU file list from the registry or .INI file.

Name

Description

CRecentFileList::operator [ ]

Returns a CString object at a given position.

Files can be added to or deleted from the MRU file list, the file list can be read from or written to the registry or an .INI file, and the menu displaying the MRU file list can be updated.

For more information about MRU menu items, see

  • Knowledge Base article Q243751 : HOWTO: Add Command Handlers for MRU Menu Items in MFC Application

Header: afxadv.h

Show:
© 2014 Microsoft