OSDN Git Service

Shorten some names.
[xkeymacs/xkeymacs.git] / xkeymacs / propertiesadvanced.h
1 #if !defined(AFX_PROPERTIESADVANCED_H__41C61B2B_97BA_4015_8F1E_CA65AC628E42__INCLUDED_)\r
2 #define AFX_PROPERTIESADVANCED_H__41C61B2B_97BA_4015_8F1E_CA65AC628E42__INCLUDED_\r
3 \r
4 #if _MSC_VER > 1000\r
5 #pragma once\r
6 #endif // _MSC_VER > 1000\r
7 // PropertiesAdvanced.h : header file\r
8 //\r
9 \r
10 /////////////////////////////////////////////////////////////////////////////\r
11 // CPropertiesAdvanced dialog\r
12 \r
13 class CPropertiesAdvanced : public CPropertyPage\r
14 {\r
15         DECLARE_DYNCREATE(CPropertiesAdvanced)\r
16 \r
17 // Construction\r
18 public:\r
19         void EnableControl();\r
20         void GetDialogData();\r
21         void SetDialogData(CString szApplicationName);\r
22         CPropertiesAdvanced();\r
23         ~CPropertiesAdvanced();\r
24 \r
25 // Dialog Data\r
26         //{{AFX_DATA(CPropertiesAdvanced)\r
27         enum { IDD = IDD_PROPERTIES_ADVANCED };\r
28         CStatic m_cCurrentlyAssigned;\r
29         CButton m_cResetAll;\r
30         CButton m_cRemove;\r
31         CEdit   m_cNewKey;\r
32         CStatic m_cDescription;\r
33         CListBox        m_cCurrentKeys;\r
34         CListBox        m_cCommands;\r
35         CComboBox       m_cCategory;\r
36         CButton m_cAssign;\r
37         BOOL    m_bEnableCUA;\r
38         //}}AFX_DATA\r
39 \r
40 \r
41 // Overrides\r
42         // ClassWizard generate virtual function overrides\r
43         //{{AFX_VIRTUAL(CPropertiesAdvanced)\r
44         public:\r
45         virtual BOOL OnSetActive();\r
46         virtual BOOL OnKillActive();\r
47         protected:\r
48         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
49         //}}AFX_VIRTUAL\r
50 \r
51 // Implementation\r
52 protected:\r
53         // Generated message map functions\r
54         //{{AFX_MSG(CPropertiesAdvanced)\r
55         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);\r
56         virtual BOOL OnInitDialog();\r
57         afx_msg void OnSelchangeCategory();\r
58         afx_msg void OnSelchangeCommands();\r
59         afx_msg void OnSelchangeCurrentKeys();\r
60         afx_msg void OnSetfocusNewKey();\r
61         afx_msg void OnAssign();\r
62         afx_msg void OnRemove();\r
63         afx_msg void OnResetAll();\r
64         afx_msg void OnCX();\r
65         afx_msg void OnKillfocusNewKey();\r
66         afx_msg void OnEnableCua();\r
67         //}}AFX_MSG\r
68         DECLARE_MESSAGE_MAP()\r
69 private:\r
70         static int m_nApplicationID;\r
71         static BOOL IsFooDown(CString szCommandName);\r
72         static BOOL IsShiftDown();\r
73         static BOOL IsMetaDown();\r
74         static BOOL IsCtrlDown();\r
75         void InitCommandIDs();\r
76         static void SetCommandID(int nType, int nKey, int nComID);\r
77         static int m_nCommandIDs[MAX_COMMAND_TYPE][MAX_KEY];\r
78         static void SetNewKey();\r
79         static int m_nAssignKey;\r
80         static int m_nAssignCommandType;\r
81         static BOOL m_bShift;\r
82         static BOOL m_bM;\r
83         static BOOL m_bC;\r
84         static BOOL m_bC_x;\r
85         static LRESULT CALLBACK KeyboardProc(int code, WPARAM wParam, LPARAM lParam);\r
86         static HHOOK m_hKeyboardHook;\r
87         static CListBox * m_pCurrentKeys;\r
88         static CStatic * m_pCurrentlyAssigned;\r
89         static CButton * m_pAssign;\r
90         static CEdit * m_pNewKey;\r
91         int m_nRemoveKey;\r
92         int m_nRemoveCommandType;\r
93         void ClearNewKey();\r
94         static int m_nCommandID;\r
95         void SetCurrentKeys();\r
96         void SetCommands();\r
97         void InitCategoryList();\r
98         CProperties* m_pProperties;\r
99         void UpdateDialogData(CString szApplicationName, BOOL bSaveAndValidate = TRUE);\r
100 };\r
101 \r
102 //{{AFX_INSERT_LOCATION}}\r
103 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
104 \r
105 #endif // !defined(AFX_PROPERTIESADVANCED_H__41C61B2B_97BA_4015_8F1E_CA65AC628E42__INCLUDED_)\r