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
6 #endif // _MSC_VER > 1000
\r
7 // PropertiesAdvanced.h : header file
\r
10 /////////////////////////////////////////////////////////////////////////////
\r
11 // CPropertiesAdvanced dialog
\r
13 class CPropertiesAdvanced : public CPropertyPage
\r
15 DECLARE_DYNCREATE(CPropertiesAdvanced)
\r
19 void EnableControl();
\r
20 void GetDialogData();
\r
21 void SetDialogData(CString szApplicationName);
\r
22 CPropertiesAdvanced();
\r
23 ~CPropertiesAdvanced();
\r
26 //{{AFX_DATA(CPropertiesAdvanced)
\r
27 enum { IDD = IDD_PROPERTIES_ADVANCED };
\r
28 CStatic m_cCurrentlyAssigned;
\r
29 CButton m_cResetAll;
\r
32 CStatic m_cDescription;
\r
33 CListBox m_cCurrentKeys;
\r
34 CListBox m_cCommands;
\r
35 CComboBox m_cCategory;
\r
42 // ClassWizard generate virtual function overrides
\r
43 //{{AFX_VIRTUAL(CPropertiesAdvanced)
\r
45 virtual BOOL OnSetActive();
\r
46 virtual BOOL OnKillActive();
\r
48 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
\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
68 DECLARE_MESSAGE_MAP()
\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
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
92 int m_nRemoveCommandType;
\r
94 static int m_nCommandID;
\r
95 void SetCurrentKeys();
\r
97 void InitCategoryList();
\r
98 CProperties* m_pProperties;
\r
99 void UpdateDialogData(CString szApplicationName, BOOL bSaveAndValidate = TRUE);
\r
102 //{{AFX_INSERT_LOCATION}}
\r
103 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
\r
105 #endif // !defined(AFX_PROPERTIESADVANCED_H__41C61B2B_97BA_4015_8F1E_CA65AC628E42__INCLUDED_)
\r