Partager via


CMFCShellListCtrl::GetCurrentFolder

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

BOOL GetCurrentFolder(
   CString& strPath 
) const;

Parameters

  • [out] strPath
    A reference to a string parameter where the method writes the path.

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