IDirList IDirList IDirList IDirList IDirList IDirList Interface

Definition

Manages the appearance and actions of a displayed directory list.

public interface class IDirList
public interface class IDirList
__interface IDirList
[System.Runtime.InteropServices.Guid("07F86395-273C-11D7-8BF6-00B0D03DAA06")]
[System.Runtime.InteropServices.TypeLibType(4288)]
public interface IDirList
type IDirList = interface
Public Interface IDirList
Attributes

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);  

Methods

Add(String) Add(String) Add(String) Add(String) Add(String) Add(String)

Adds a string to a directory list.

index(Int32, String) index(Int32, String) index(Int32, String) index(Int32, String) index(Int32, String) index(Int32, String)

Retrieves an item, by position, from the directory list.

put_Description(String) put_Description(String) put_Description(String) put_Description(String) put_Description(String) put_Description(String)

Changes the description of the directory list.

put_ShowCheck(Boolean) put_ShowCheck(Boolean) put_ShowCheck(Boolean) put_ShowCheck(Boolean) put_ShowCheck(Boolean) put_ShowCheck(Boolean)

Show or hide the checkbox next to each item in the list.

put_ShowTitle(Boolean) put_ShowTitle(Boolean) put_ShowTitle(Boolean) put_ShowTitle(Boolean) put_ShowTitle(Boolean) put_ShowTitle(Boolean)

Show or hide the title of the directory list.

put_Title(String) put_Title(String) put_Title(String) put_Title(String) put_Title(String) put_Title(String)

Change the title of the directory list.

Reset() Reset() Reset() Reset() Reset() Reset()

Go back to the default values for the directory list.

Applies to