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

对话框与窗口

开发平台:

Visual C++

  1. #if !defined(AFX_PAGEMOUSE_H__34B20EF5_78A8_4E14_81AA_1214D5194CFF__INCLUDED_)
  2. #define AFX_PAGEMOUSE_H__34B20EF5_78A8_4E14_81AA_1214D5194CFF__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // pagemouse.h : header file
  7. //
  8. #include "OptionsPage.h"
  9. #include <afxtempl.h>
  10. //#include "KeyAssign.h"
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CPageMouse dialog
  13. class CPageMouse : public COptionsPage
  14. {
  15. DECLARE_DYNCREATE(CPageMouse)
  16. class CComboBoxData : public CComboBox
  17. {
  18. public: 
  19. void AddStringData(CString str, DWORD dwData)
  20. {
  21. int nIndex = AddString(str);
  22. if (nIndex != CB_ERR)
  23. SetItemData(nIndex, dwData);
  24. }
  25. };
  26. // Construction
  27. public:
  28. void RefreshList();
  29. CPageMouse();
  30. ~CPageMouse();
  31. // Dialog Data
  32. //{{AFX_DATA(CPageMouse)
  33. enum { IDD = IDD_PAGE_MOUSE };
  34. CXTPShortcutManager::CKeyAssign m_wndAssign;
  35. CListCtrl m_wndCurrent;
  36. CComboBoxData m_cmbMouse;
  37. CComboBoxData m_cmbCommands;
  38. CComboBoxData m_cmbArea;
  39. //}}AFX_DATA
  40. protected:
  41. void GetMenuStrings(CXTPCommandBar* pBar, CString strPrefix);
  42. CMap< UINT, UINT, CString, CString& > m_mapCommands;
  43. // Overrides
  44. // ClassWizard generate virtual function overrides
  45. //{{AFX_VIRTUAL(CPageMouse)
  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(CPageMouse)
  53. virtual BOOL OnInitDialog();
  54. afx_msg void OnButtonRemove();
  55. afx_msg void OnButtonAdd();
  56. //}}AFX_MSG
  57. DECLARE_MESSAGE_MAP()
  58. };
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_PAGEMOUSE_H__34B20EF5_78A8_4E14_81AA_1214D5194CFF__INCLUDED_)