33 *pClassID = CLSID_ExplorerBand;
56 return SHCONTF_FOLDERS;
79 if (m_mtxBlockNavigate)
83 m_hwndTreeView.SetFocus();
98 CItemData *info1 = (CItemData*)p1;
99 CItemData *info2 = (CItemData*)p2;
114 m_hRoot = _InsertItem(
NULL, m_pDesktop, m_pidlRoot, m_pidlRoot,
FALSE);
117 ERR(
"Failed to create root item\n");
126 CComPtr<IWebBrowser2> browserService;
132 hr =
AtlAdvise(browserService,
dynamic_cast<IDispatch*
>(
this), DIID_DWebBrowserEvents, &m_adviseCookie);
141 CComPtr<IWebBrowser2> browserService;
147 AtlUnadvise(browserService, DIID_DWebBrowserEvents, m_adviseCookie);
149 CNSCBand::_DestroyTreeView();
178 DISPPARAMS *pDispParams,
180 EXCEPINFO *pExcepInfo,
183 switch (dispIdMember)
188 TRACE(
"dispId %d received\n", dispIdMember);
193 TRACE(
"Unknown dispid requested: %08x\n", dispIdMember);
199 CComHeapPtr<ITEMIDLIST> pidl;
205 ++m_mtxBlockNavigate;
208 --m_mtxBlockNavigate;
238 CItemData *pItemData = GetItemData(
hItem);
241 ERR(
"Something has gone wrong, no data associated to node\n");
246 if (!m_pDesktop->CompareIDs(0, pItemData->absolutePidl,
dest))
268 if (!pItemData->expanded)
270 _InsertSubitems(
hItem, pItemData->absolutePidl);
271 pItemData->expanded =
TRUE;
286 if (
bInsert && pItemData->expanded)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
void _DestroyTreeView() override
static INT CALLBACK _CompareTreeItems(LPARAM p1, LPARAM p2, LPARAM p3)
STDMETHODIMP GetIDsOfNames(REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId) override
STDMETHODIMP OnSelectionChanged(_In_ PCIDLIST_ABSOLUTE pidl) override
STDMETHODIMP GetTypeInfoCount(UINT *pctinfo) override
void _SortItems(HTREEITEM hParent) override
STDMETHODIMP GetClassID(CLSID *pClassID) override
STDMETHODIMP Invoke(_In_ PCIDLIST_ABSOLUTE pidl) override
BOOL _NavigateToPIDL(_In_ LPCITEMIDLIST dest, _Out_ HTREEITEM *phItem, _In_ BOOL bExpand, _In_ BOOL bInsert, _In_ BOOL bSelect)
BOOL _WantsRootItem() override
DWORD _GetEnumFlags() override
STDMETHODIMP GetTypeInfo(UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) override
DWORD _GetTVStyle() override
INT _GetRootCsidl() override
DWORD _GetTVExStyle() override
BOOL _GetTitle(LPWSTR pszTitle, INT cchTitle) override
BOOL _NavigateToCurrentFolder()
HRESULT _CreateTreeView(HWND hwndParent) override
static HINSTANCE instance
HRESULT WINAPI AtlAdvise(IUnknown *pUnkCP, IUnknown *pUnk, const IID *iid, DWORD *pdw)
HRESULT WINAPI AtlUnadvise(IUnknown *pUnkCP, const IID *iid, DWORD dw)
#define FAILED_UNEXPECTEDLY(hr)
HRESULT WINAPI IUnknown_QueryService(IUnknown *, REFGUID, REFIID, LPVOID *)
HRESULT CompareIDs([in] LPARAM lParam, [in] PCUIDLIST_RELATIVE pidl1, [in] PCUIDLIST_RELATIVE pidl2)
static VARIANTARG static DISPID
LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST pidl)
PUIDLIST_RELATIVE WINAPI ILFindChild(PIDLIST_ABSOLUTE pidl1, PCIDLIST_ABSOLUTE pidl2)
#define TreeView_SelectItem(hwnd, hitem)
#define TreeView_Expand(hwnd, hitem, code)
#define TreeView_GetChild(hwnd, hitem)
#define TVS_SHOWSELALWAYS
#define TreeView_GetFirstVisible(hwnd)
#define TreeView_GetNextSibling(hwnd, hitem)
#define TreeView_SortChildrenCB(hwnd, psort, recurse)
#define TreeView_SetItem(hwnd, pitem)
#define SID_SWebBrowserApp
ITEMIDLIST UNALIGNED * LPITEMIDLIST
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
#define DISPID_NAVIGATECOMPLETE2
#define DISPID_DOWNLOADCOMPLETE
_In_ DWORD _Out_ _In_ WORD wFlags
#define IID_PPV_ARG(Itype, ppType)