Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Manages the appearance and actions of a displayed directory list.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
<GuidAttribute("07F86395-273C-11D7-8BF6-00B0D03DAA06")> _
Public Interface IDirList
'Usage
Dim instance As IDirList
[GuidAttribute("07F86395-273C-11D7-8BF6-00B0D03DAA06")]
public interface IDirList
[GuidAttribute(L"07F86395-273C-11D7-8BF6-00B0D03DAA06")]
public interface class IDirList
public interface IDirList
Examples
In order to get an instance of this interface, you must create a CAxWindow and then call QueryControl, as with the code below. (You can find the definition of CAxWindow in atlwin.h.)
CComPtr<IUnknown> pUnk;
m_pServiceProvider->QueryService(SID_SDirList, IID_IUnknown, (void **)&pUnk);
CAxWindow wndDirList;
RECT rectChild = { 0, 26, 263, 151 };
wndDirList.Create(
m_hWnd,
rectChild,
CComBSTR(__uuidof(DirList)),
WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN,
0,
IDC_DIRCONTROL); //this can be any number that is unique among the controls of the parent window
CComPtr<IDirList> srpList;
wndDirList.QueryControl(&srpList);
CComQIPtr<IDirListSite> srpListSite = srpList;
if (srpListSite)
srpListSite->SetSite(m_pServiceProvider);