__interface ITreeView : IControl

{

    void EnableCheckboxes(void);

    HRESULT CreateImageList(int width, int height, UINT flags);

    int AddImage(HINSTANCE hInstance, int resourceId);

 

    HTREEITEM AddItem(LPCTSTR text, HTREEITEM hParent = NULL);

    void SetImage(HTREEITEM item, int image, int expandImage);

 

    void Clear(void);

    BOOL SetFirstVisible(HTREEITEM item);

    BOOL SelectItem(HTREEITEM item);

    void CheckItem(HTREEITEM item, UINT checkState);

    HTREEITEM SelectedItem(void);

    int SetItemHeight(SHORT height);

    HRESULT EnableItem(HTREEITEM item, BOOL enable);

    void Expand(HTREEITEM hItem, BOOL expand);

 

    HTREEITEM GetChild(HTREEITEM hParent);

    HTREEITEM GetParent(HTREEITEM hNode);

    HTREEITEM GetNextItem(HTREEITEM hPrevious);

 

    UINT IsChecked(HTREEITEM item);

    BOOL IsEnabled(HTREEITEM item);

 

    INT_PTR CommonControlEvent(WORD controlId, void* pInfo, BOOL *pCancel);

    HRESULT SetEventHandler(ITreeViewEvent *pEventHandler);

 

    void SetSelectedBackColor(COLORREF color);

};

Related Topics

Wizard Page Interfaces
Overview
void EnableCheckboxes(void)
HRESULT CreateImageList(int width, int height, UINT flags)
int AddImage(HINSTANCE hInstance, int resourceId)
HTREEITEM AddItem(LPCTSTR text, HTREEITEM hParent = NULL)
void SetImage(HTREEITEM item, int image, int expandImage)
void Clear(void)
BOOL SetFirstVisible(HTREEITEM item)
BOOL SelectItem(HTREEITEM item)
void CheckItem(HTREEITEM item, UINT checkState)
HTREEITEM SelectedItem(void)
int SetItemHeight(SHORT height)
HRESULT EnableItem(HTREEITEM item, BOOL enable)
void Expand(HTREEITEM hItem, BOOL expand)
HTREEITEM GetChild(HTREEITEM hParent)
HTREEITEM GetParent(HTREEITEM hNode)
HTREEITEM GetNextItem(HTREEITEM hPrevious)
UINT IsChecked(HTREEITEM item)
BOOL IsEnabled(HTREEITEM item)
INT_PTR CommonControlEvent(WORD controlId, void* pInfo, BOOL *pCancel)
HRESULT SetEventHandler(ITreeViewEvent *pEventHandler)
void SetSelectedBackColor(COLORREF color)