PageKeyboard.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:2k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. #if !defined(AFX_PAGEKEYBOARD_H__FA5C0CB8_E878_4C38_866B_7ED540C6A918__INCLUDED_)
  2. #define AFX_PAGEKEYBOARD_H__FA5C0CB8_E878_4C38_866B_7ED540C6A918__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // PageKeyboard.h : header file
  7. //
  8. #include <afxtempl.h>
  9. #include "resource.h"
  10. #include "OptionsPage.h"
  11. //#include "KeyAssign.h"
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CPageKeyboard dialog
  14. class CPageKeyboard : public COptionsPage
  15. {
  16. DECLARE_DYNCREATE(CPageKeyboard)
  17. // Construction
  18. public:
  19. void Filter();
  20. CPageKeyboard();
  21. ~CPageKeyboard();
  22. // Dialog Data
  23. //{{AFX_DATA(CPageKeyboard)
  24. enum { IDD = IDD_PAGE_KEYBOARD };
  25. CComboBox m_cmbUsed;
  26. CComboBox m_cmbShortcuts;
  27. CListBox m_wndList;
  28. CString m_strFilter;
  29. //}}AFX_DATA
  30. CXTPShortcutManager::CKeyAssign m_wndAssign;
  31. struct LISTINFO
  32. {
  33. CString strTitle;
  34. UINT nID;
  35. };
  36. CArray<LISTINFO, LISTINFO&> m_arrMenu ;
  37. CXTPShortcutManager* m_pShortcutManager;
  38. // Operations
  39. protected:
  40. void GetMenuStrings(CXTPCommandBar* pBar, CString strPrefix);
  41. // Overrides
  42. // ClassWizard generate virtual function overrides
  43. //{{AFX_VIRTUAL(CPageKeyboard)
  44. public:
  45. virtual BOOL PreTranslateMessage(MSG* pMsg);
  46. protected:
  47. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  48. //}}AFX_VIRTUAL
  49. // Implementation
  50. protected:
  51. // Generated message map functions
  52. //{{AFX_MSG(CPageKeyboard)
  53. virtual BOOL OnInitDialog();
  54. afx_msg void OnFilterChange();
  55. afx_msg void OnListChange();
  56. afx_msg void OnAssignChange();
  57. afx_msg void OnButtonAssign();
  58. afx_msg void OnButtonRemove();
  59. afx_msg void OnButtonResetAll();
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. };
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  65. #endif // !defined(AFX_PAGEKEYBOARD_H__FA5C0CB8_E878_4C38_866B_7ED540C6A918__INCLUDED_)