FoldersTree_InsertFileSimple

HRESULT FoldersTree_InsertFileSimple(
        HWND hwnd,
        HTREEITEM hParent,
        HTREEITEM hInsertAfter,
        const ITEMIDLIST *pidl,
        HTREEITEM *hNewItem);

Arguments

[in] HWND hwnd

Handle to the control.

[in] HTREEITEM hParent

Handle to the parent item.

[in] HTREEITEM hInsertAfter

Specifies after which item to insert. For the description see MSDN about TVINSERTSTRUCT.

[in] const ITEMIDLIST *pidl

The PIDL of the shell object.

[out] HTREEITEM *hNewItem

The handle of inserted item.

Description

This function inserts item, associated with the shell object designated by given PIDL, as a child of hParent. The item with the handle hParent must be not associated. hParent may be NULL or TVI_ROOT, in such case new item is inserted at the root of the tree.