-
Notifications
You must be signed in to change notification settings - Fork 5
/
MyTreeDialog.h
125 lines (110 loc) · 3.72 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
/*----------------------------------------------------------
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
// MyTreeDialog.h : ヘッダー ファイル
#include "Charu3Tree.h"
//---------------------------------------------------
// CMyTreeDialog ダイアログ
//---------------------------------------------------
class CMyTreeDialog : public CDialog
{
// コンストラクション
public:
CMyTreeDialog(CWnd* pParent = NULL); // 標準のコンストラクタ
~CMyTreeDialog() {
if(m_hDLL) ::FreeLibrary(m_hDLL);
m_PopupMenu.DestroyMenu();
}
void setTree(CCharu3Tree *pTreeCtrl) {
m_pTreeCtrl = pTreeCtrl;
}
BOOL showWindowPos(POINT pos,POINT size,int nCmdShow,bool isSelect,HTREEITEM hOpenItem = NULL);
void enterData(list<STRING_DATA>::iterator it);
void closePopup();
list<STRING_DATA>::iterator m_selectIT;
// ダイアログ データ
//{{AFX_DATA(CMyTreeDialog)
enum { IDD = IDD_POPUP_DIALOG };
CCharu3Tree *m_pTreeCtrl;
//}}AFX_DATA
// オーバーライド
// ClassWizard は仮想関数のオーバーライドを生成します。
//{{AFX_VIRTUAL(CMyTreeDialog)
public:
virtual BOOL DestroyWindow();
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV サポート
//}}AFX_VIRTUAL
// インプリメンテーション
protected:
int static m_stKeycode[];
char static *m_stKeyName[];
char static *m_stKeyNameShift[];
HMODULE m_hDLL;
typedef DWORD (WINAPI *PFUNC)(HWND,DWORD,BYTE,DWORD);
PFUNC m_pExStyle;
CFont *m_cFont,*m_cOlgFont;
CToolTipCtrl m_toolTip;//ツールチップ
bool m_isInitOK,m_isModal;
bool m_isAltDown;
list<STRING_DATA>::iterator m_itDbClick;
CBrush m_brBack;
CMenu m_PopupMenu;
HTREEITEM m_hCopyData;
COLORREF m_colFrameL,m_colFrame,m_colFrameD;
DWORD m_dwStartTime;
CString m_strQuickKey;
HTREEITEM m_hQuickItem;
void changeTipString(STRING_DATA data);
void drawFrame(CDC* pDC, CRect& rect);
void drawLline(CDC* pDC, CPoint* point, COLORREF col);
void pouupMenu(CPoint point);
bool quickAccess(UINT uKeyCode);
// 生成されたメッセージ マップ関数
//{{AFX_MSG(CMyTreeDialog)
afx_msg void OnSize(UINT nType, int cx, int cy);
virtual BOOL OnInitDialog();
afx_msg void OnAdd();
afx_msg void OnChangeOnetime();
afx_msg void OnChangeLock();
afx_msg void OnCopyData();
afx_msg void OnDataPaste();
afx_msg void OnDelete();
afx_msg void OnEdit();
afx_msg void OnExport();
afx_msg void OnFolderClear();
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 OnImport();
afx_msg void OnListSerch();
afx_msg void OnNewFolder();
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 OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnNcPaint(void);
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_)