Partilhar via


CMFCShellListCtrl::GetCurrentFolderName

Retrieves the name of the currently selected folder in the CMFCShellListCtrl object.

BOOL GetCurrentFolderName(
   CString& strName 
) const;

Parameters

  • [out] strName
    A reference to a string parameter where the method writes the name.

Return Value

Nonzero if successful; 0 otherwise.

Remarks

This method fails if there is no folder selected in the CMFCShellListCtrl.

Requirements

Header: afxshelllistctrl.h

See Also

Reference

CMFCShellListCtrl Class

Hierarchy Chart