Bagikan melalui


CMFCShellTreeCtrl::SetRelatedList

Associates a CMFCShellListCtrl object with a CMFCShellTreeCtrl object.

void SetRelatedList(
   CMFCShellListCtrl* pShellList 
);

Parameters

  • [in] pShellList
    A pointer to a CMFCShellListCtrl object.

Remarks

This method associates a CMFCShellListCtrl with a CMFCShellTreeCtrl. These objects may be displayed as an Explorer-like window: if the user selects an object in the CMFCShellTreeCtrl, the associated items in the CMFCShellListCtrl will be automatically updated.

Use the method CMFCShellTreeCtrl::GetRelatedList to retrieve the CMFCShellListCtrl associated with a CMFCShellTreeCtrl.

Requirements

Header: afxshelltreectrl.h

See Also

Reference

CMFCShellTreeCtrl Class

Hierarchy Chart

CMFCShellTreeCtrl::GetRelatedList

CMFCShellListCtrl Class