Udostępnij za pośrednictwem


CMFCShellListCtrl::OnGetItemText

The framework calls this method when it must retrieve the text of a shell item.

virtual CString OnGetItemText(
   int iItem,
   int iColumn,
   LPAFX_SHELLITEMINFO pItem 
);

Parameters

  • [in] iItem
    The item index.

  • [in] iColumn
    The column of interest.

  • [in] pItem
    A LPAFX_SHELLITEMINFO parameter that describes the item.

Return Value

A CString that contains the text associated with the item.

Remarks

Each item in the CMFCShellListCtrl object may have text in one or more columns. When the framework calls this method, it specifies the column that it is interested in. If you call this function manually, you must also specify the column that you are interested in.

By default, this method relies on the pItem parameter to determine which item to process. The value of iItem is not used in the default implementation.

Requirements

Header: afxshelllistctrl.h

See Also

Reference

CMFCShellListCtrl Class

Hierarchy Chart