-
Notifications
You must be signed in to change notification settings - Fork 0
/
ViewTree.h
50 lines (35 loc) · 1.02 KB
/
ViewTree.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#pragma once
/////////////////////////////////////////////////////////////////////////////
// CViewTree window
#include"tinyxml.h"
class CViewTree : public CTreeCtrl
{
// Construction
public:
CViewTree();
//Attributes
public:
// Overrides
protected:
virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
// Implementation
public:
virtual ~CViewTree();
public:
bool LoadFromXML( const CString& a_strFile );
bool SaveToXML( const CString& a_strFile );
public:
void Load( TiXmlNode* a_pNode );
void Save( TiXmlNode* a_pNode );
protected:
void LoadItem( TiXmlNode* a_pNode, HTREEITEM a_hTreeParent );
int GetIndentLevel( HTREEITEM hItem );
HTREEITEM GetNextItem( HTREEITEM hItem );
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnTvnSelchanged(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnNMRClick(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
};