Lhaz
lhaztreeview.h
[詳解]
1 /*==========================================================================*/
2 /* Lhaz Treeview chitora48@gmail.com */
3 /*==========================================================================*/
4 #ifndef _LHAZTREEVIEW_H
5 #define _LHAZTREEVIEW_H
6 
7 #include <windows.h>
8 #include "altstr_fwd.hpp"
9 #include "mytreeview.h"
10 #include "lhazarc.h"
11 
12 class MYTREE;
13 
14 
15 namespace gui {
16 
17 
18 class LHAZTREEVIEW : public MYTREEVIEW {
19 public:
20  LHAZTREEVIEW(HINSTANCE hins, HWND parent, UINT id, int nWidth, int nHeight);
21  ‾LHAZTREEVIEW(void);
22  //
23  HTREEITEM CreateRoot(const WSTR& name, ARCHIVE::TYPE type, LPARAM lParam);
24  void CreateTree(const WSTR& name, ARCHIVE::TYPE type);
25  bool DeleteItem(HTREEITEM hitem);
26  int GetParam(HTREEITEM hitem) const;
27  HTREEITEM GetRoot(HTREEITEM hitem) const;
28  HTREEITEM GetRoot(void) const;
29  int GetRootIndex(HTREEITEM hitem) const;
30  LPARAM GetSelectedFolder(void) const;
31  HTREEITEM GetSelectedRoot(void) const;
32  HTREEITEM InsertItem(HTREEITEM parent, const WSTR& name, LPARAM lParam);
33  HTREEITEM InsertItem(LPTVINSERTSTRUCT lpis);
34  bool IsSelectedRoot(void) const;
35 
36 private:
37  static int Index;
38  static const int IconIndexRes[ARCHIVE::MAX];
39  //
40  HINSTANCE Resource;
41  HIMAGELIST Image;
45 
46 };
47 
48 
49 } // namespace gui
50 
51 #endif // _LHAZTREEVIEW_H
Archive.
TYPE
Definition: lhazarc.h:28
LHAZTREEVIEW(HINSTANCE hins, HWND parent, UINT id, int nWidth, int nHeight)
Definition: lhaztreeview.cpp:44
static const int IconIndexRes[ARCHIVE::MAX]
Definition: lhaztreeview.h:38
Definition: lhazbz2.h:17
bool IsSelectedRoot(void) const
Definition: lhaztreeview.cpp:163
void CreateTree(const WSTR &name, ARCHIVE::TYPE type)
HTREEITEM CreateRoot(const WSTR &name, ARCHIVE::TYPE type, LPARAM lParam)
Definition: lhaztreeview.cpp:103
Definition: lhaztreeview.h:18
HTREEITEM InsertItem(HTREEITEM parent, const WSTR &name, LPARAM lParam)
Definition: lhaztreeview.cpp:120
‾LHAZTREEVIEW(void)
Definition: lhaztreeview.cpp:88
LPARAM GetSelectedFolder(void) const
Definition: lhaztreeview.cpp:148
HIMAGELIST Image
Definition: lhaztreeview.h:41
static int Index
Definition: lhaztreeview.h:37
int IconIndexFolderOpened
Definition: lhaztreeview.h:44
bool DeleteItem(HTREEITEM hitem)
Definition: lhaztreeview.cpp:178
HTREEITEM GetRoot(void) const
Definition: lhaztreeview.cpp:201
HINSTANCE Resource
Definition: lhaztreeview.h:40
int GetRootIndex(HTREEITEM hitem) const
int GetParam(HTREEITEM hitem) const
Definition: lhaztreeview.cpp:187
int IconIndexRoot[ARCHIVE::MAX]
Definition: lhaztreeview.h:42
int IconIndexFolder
Definition: lhaztreeview.h:43
Definition: lhazarc.h:51
HTREEITEM GetSelectedRoot(void) const
Definition: lhaztreeview.cpp:226