共用方式為


CRecentFileList Class

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

class CRecentFileList

Members

Public Constructors

Name

Description

CRecentFileList::CRecentFileList

Constructs a CRecentFileList object.

Public Methods

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.

Public Operators

Name

Description

CRecentFileList::operator [ ]

Returns a CString object at a given position.

Remarks

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

Inheritance Hierarchy

CRecentFileList

Requirements

Header: afxadv.h

See Also

Reference

Hierarchy Chart