-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathArenaBar.h
114 lines (89 loc) · 2.61 KB
/
ArenaBar.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/*************************************************************************************************\
*
* Filename: ArenaBar.h
* Purpose: Define CArenaBar class
* Version: 1.0
* Author: Gavin Clayton
*
* Last Updated: 29/08/2002
*
* Copyright 2002. Gavin Clayton. All Rights Reserved.
*
*
* If changes are made by you to this code, please log them below:
*
*
\*************************************************************************************************/
#if !defined(AFX_ARENABAR_H__DF7841C4_FE45_49D8_A5FF_DD58F50F14B4__INCLUDED_)
#define AFX_ARENABAR_H__DF7841C4_FE45_49D8_A5FF_DD58F50F14B4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ArenaBar.h : header file
//
#include "TStaticArray.h"
// Node Images
enum _tagNodeImages
{
NI_FOLDER,
NI_FOLDEROPEN,
NI_BITMAP,
NI_CUBE,
NI_SELECTEDCUBE,
NI_BLOCKS,
NI_SELECTEDBLOCKS,
};
// Node Properties - Properties associated with every node in the tree view
typedef struct _tagNodeProperties
{
LPARAM nt; // Node type
HTREEITEM hThis; // Handle to this node in the tree view
HTREEITEM hParent; // Handle to parent of this node in the tree view
CString strText; // Text of this node
CString strFile; // The associated file (if any) with this node
} NODEPROP;
/////////////////////////////////////////////////////////////////////////////
// CArenaBar window
#ifndef baseCViewBar
#define baseCViewBar CSizingControlBarG
#endif
class CArenaBar : public baseCViewBar
{
// Construction
public:
CArenaBar();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CArenaBar)
protected:
virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CArenaBar();
// Generated message map functions
protected:
//{{AFX_MSG(CArenaBar)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public: // methods
void Purge();
HTREEITEM InsertNode( HTREEITEM hParent, LPCSTR pszText, LPARAM nt, int iImage = NI_FOLDER, int iSelectedImage = NI_FOLDEROPEN, LPCSTR pszFile = NULL );
public: // objects
CTreeCtrl m_ctrlArenaTree;
TStaticArray<NODEPROP> m_oaNodeProperties;
private: // objects
CImageList m_ilArenaTree;
private: // data
BOOL m_bIsCreated;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ARENABAR_H__DF7841C4_FE45_49D8_A5FF_DD58F50F14B4__INCLUDED_)