#endif
{
ShellBrowser(HWND hwnd, HWND left_hwnd, WindowHandle& right_hwnd, ShellPathInfo& create_info,
- HIMAGELIST himl, BrowserCallback* cb, CtxMenuInterfaces& cm_ifs);
+ BrowserCallback* cb, CtxMenuInterfaces& cm_ifs);
virtual ~ShellBrowser();
//IOleWindow
LRESULT Init(HWND hWndFrame);
- void Init(HIMAGELIST himl)
+ void Init()
{
- InitializeTree(himl);
+ InitializeTree();
InitDragDrop();
}
// for SDIMainFrame
void jump_to(LPCITEMIDLIST pidl);
+ void invalidate_cache();
+
protected:
HWND _hwnd;
HWND _left_hwnd;
CtxMenuInterfaces& _cm_ifs;
- void InitializeTree(HIMAGELIST himl);
+ void InitializeTree();
bool InitDragDrop();
#ifndef __MINGW32__ // IShellFolderViewCB missing in MinGW (as of 25.09.2005)
// IShellFolderViewCB
virtual HRESULT STDMETHODCALLTYPE MessageSFVCB(UINT uMsg, WPARAM wParam, LPARAM lParam);
#endif
+
+ map<int, int> _image_map;
+
+ int get_image_idx(int icon_id);
};
ShellBrowserChildT(HWND hwnd)
: super(hwnd)
{
- _himlSmall = 0;
}
// constructor for MDIShellBrowserChild
ShellBrowserChildT(HWND hwnd, const ShellChildWndInfo& info)
: super(hwnd, info)
{
- _himlSmall = 0;
}
- void init_himl()
- {
- SHFILEINFO sfi;
-
- _himlSmall = (HIMAGELIST)SHGetFileInfo(C_DRIVE, 0, &sfi, sizeof(SHFILEINFO), SHGFI_SYSICONINDEX|SHGFI_SMALLICON);
-// _himlLarge = (HIMAGELIST)SHGetFileInfo(C_DRIVE, 0, &sfi, sizeof(SHFILEINFO), SHGFI_SYSICONINDEX|SHGFI_LARGEICON);
- }
-
-protected:
- HIMAGELIST _himlSmall; // list
-// HIMAGELIST _himlLarge; // shell image
-
protected:
auto_ptr<ShellBrowser> _shellBrowser;