The CMFCShellListCtrl class provides Windows list control functionality and expands it by including the ability to display a list of shell items.
Displays a list of items that are contained in a provided folder.
Displays a list of items that are contained in the folder that is the parent of the currently displayed folder.
Enables or disables the shortcut menu.
Retrieves the path of the current folder.
Retrieves the name of the current folder.
Returns the PIDL of the current list control item.
Returns a pointer to the current Shell folder.
Returns the textual path of an item.
Returns Shell item types that are displayed by the list control.
Checks if the currently selected folder is the desktop folder.
The framework calls this method when it compares two items. (Overrides CMFCListCtrl::OnCompareItems.)
Called when the framework retrieves the file date displayed by the list control.
Called when the framework converts the file size of a list control.
Called when the framework retrieves the icon of a list control item.
Called when the framework converts the text of a list control item.
Called by the framework when it sets the names of the columns.
Refreshes and repaints the list control.
Sets the type of items displayed by the list control.
The CMFCShellListCtrl class extends the functionality of the CMFCListCtrl Class by enabling your program to list Windows shell items. The display format that is used is like that of a list view for an Explorer window.
A CMFCShellTreeCtrl object can be associated with a CMFCShellListCtrl object to create a complete Explorer window. Then, selecting an item in the CMFCShellTreeCtrl will cause the CMFCShellListCtrl object to list the contents of the selected item.
The following example demonstrates how to create an object of the CMFCShellListCtrl class and how to display the parent folder of the currently displayed folder. This code snippet is part of the Explorer sample.