forked from keizi666/charu3
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
MyTreeDialog.h
145 lines (123 loc) · 4.36 KB
/
MyTreeDialog.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
/*----------------------------------------------------------
MyTreeDialogクラスヘッダ
2002/11/16 (c)Keizi
----------------------------------------------------------*/
#if !defined(AFX_MYTREEDIALOG_H__00B921AA_8B84_46EB_8705_D1A7BDA5A401__INCLUDED_)
#define AFX_MYTREEDIALOG_H__00B921AA_8B84_46EB_8705_D1A7BDA5A401__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "stdafx.h"
#include "Charu3Tree.h"
#include "SearchDialog.h"
#include "resource.h"
//---------------------------------------------------
// CMyTreeDialog ダイアログ
//---------------------------------------------------
class CMyTreeDialog : public CDialog
{
// コンストラクション
public:
CMyTreeDialog(CWnd* pParent = NULL); // 標準のコンストラクタ
// オペレーション
public:
void SetTree(CCharu3Tree* pTreeCtrl) { m_pTreeCtrl = pTreeCtrl; }
STRING_DATA* GetSelectedDataPtr() { return m_selectedDataPtr; }
// ダイアログ データ
private:
//{{AFX_DATA(CMyTreeDialog)
enum { IDD = IDD_DATA_TREE_VIEW };
CCharu3Tree* m_pTreeCtrl;
//}}AFX_DATA
// オーバーライド
// ClassWizard は仮想関数のオーバーライドを生成します。
public:
//{{AFX_VIRTUAL(CMyTreeDialog)
virtual BOOL DestroyWindow();
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV サポート
//}}AFX_VIRTUAL
// インプリメンテーション
public:
virtual ~CMyTreeDialog() {
if (m_hDLL) ::FreeLibrary(m_hDLL);
m_PopupMenu.DestroyMenu();
}
BOOL ShowWindowPos(POINT pos, POINT size, int nCmdShow, bool isSelect, HTREEITEM hOpenItem = NULL);
private:
void Close(WPARAM wparam);
inline void Cancel() { Close(IDCANCEL); }
void Determine(STRING_DATA* dataPtr);
void PopupMenu(CPoint point);
void SetTipText(STRING_DATA* data);
bool SelectByTyping(UINT uKeyCode);
void GetFindParam();
void FindNext(bool backward);
STRING_DATA* GetClickedItem();
bool m_isInitOK, m_bCheckbox, m_isModal;
bool m_isAltDown;
STRING_DATA* m_selectedDataPtr;
STRING_DATA* m_dataPtrDbClick;
HTREEITEM m_hBookedItemToCopy;
HMODULE m_hDLL;
typedef DWORD(WINAPI* PFUNC)(HWND, DWORD, BYTE, DWORD);
PFUNC m_pExStyle;
CFont* m_cFont;
COLORREF m_colFrame;
bool m_bFind;
CSearchDialog* m_findDialog;
DWORD m_dwStartTime;
CString m_strQuickKey;
HTREEITEM m_hQuickItem;
CBrush m_brBack;
CMenu m_PopupMenu;
CToolTipCtrl m_toolTip;
// 生成されたメッセージ マップ関数
protected:
//{{AFX_MSG(CMyTreeDialog)
virtual BOOL OnInitDialog();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnEdit();
afx_msg void OnDelete();
afx_msg void OnRename();
afx_msg void OnIconClip();
afx_msg void OnIconDate();
afx_msg void OnIconExe();
afx_msg void OnIconKey();
afx_msg void OnIconKeymacro();
afx_msg void OnIconPlugin();
afx_msg void OnIconRelate();
afx_msg void OnIconSelect();
afx_msg void OnMakeOnetime();
afx_msg void OnMakePermanent();
afx_msg void OnFolderClear();
afx_msg void OnNewData();
afx_msg void OnNewFolder();
afx_msg void OnReselectIcons();
afx_msg void OnCleanupAllOnetime();
afx_msg void OnMakeAllOnetimePermanent();
afx_msg void OnCloseAll();
afx_msg void OnListSearch();
afx_msg void OnCopyData();
afx_msg void OnDataPaste();
afx_msg void OnImport();
afx_msg void OnExport();
afx_msg void OnOption();
afx_msg void OnRclickMyTree(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnClickMyTree(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnKeydownMyTree(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnKillFocusMyTree(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnSetFocusMyTree(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnNcPaint();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnBeginlabeleditMyTree(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnEndlabeleditMyTree(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnCheckItem();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ は前行の直前に追加の宣言を挿入します。
#endif // !defined(AFX_MYTREEDIALOG_H__00B921AA_8B84_46EB_8705_D1A7BDA5A401__INCLUDED_)