ChildFormView.h
上传用户:sesekoo
上传日期:2020-07-18
资源大小:21543k
文件大小:3k
源码类别:

界面编程

开发平台:

Visual C++

  1. #if !defined(AFX_CHILDFORMVIEW_H__5A1BD4EF_2576_4480_BC1A_54B9357C8DC8__INCLUDED_)
  2. #define AFX_CHILDFORMVIEW_H__5A1BD4EF_2576_4480_BC1A_54B9357C8DC8__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ChildFormView.h : header file
  7. //
  8. class CMainFrame;
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CChildFormView form view
  11. #ifndef __AFXEXT_H__
  12. #include <afxext.h>
  13. #endif
  14. class CChildFormView
  15. : public CExtWS < CExtAFV < CFormView >  >
  16. {
  17. protected:
  18. CChildFormView();           // protected constructor used by dynamic creation
  19. DECLARE_DYNCREATE(CChildFormView)
  20. // Form Data
  21. public:
  22. //{{AFX_DATA(CChildFormView)
  23. enum { IDD = IDD_DIALOG_CHILD_VIEW };
  24. CExtLabel m_wndLabelColorTheme;
  25. CExtLabel m_wndLabelSelType;
  26. CExtColorButton m_wndColor2;
  27. CExtColorButton m_wndColor1;
  28. CExtGroupBox m_wndGroupBox2;
  29. CExtGroupBox m_wndGroupBox1;
  30. CExtComboBox m_wndColorCtrlType;
  31. CExtComboBox m_wndColorTheme;
  32. //}}AFX_DATA
  33. // Attributes
  34. public:
  35. // Operations
  36. public:
  37. CExtColorCtrl m_wndColorCtrl1;
  38. CExtColorCtrl m_wndColorCtrl2;
  39. friend class CMainFrame;
  40. enum e_ColorThemes_t
  41. {
  42. ThemeLunaBlue = 1,
  43. ThemeLunaOlive = 2,
  44. ThemeLunaSilver = 3,
  45. ThemeStudio2005 = 4,
  46. ThemePumpkin = 5,
  47. ThemeRose = 6,
  48. ThemeEggplant = 7,
  49. ThemeRainyDay = 8,
  50. ThemeSpruce = 9,
  51. ThemeLilac = 10,
  52. };
  53. // Overrides
  54. // ClassWizard generated virtual function overrides
  55. //{{AFX_VIRTUAL(CChildFormView)
  56. public:
  57. virtual void OnInitialUpdate();
  58. virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
  59. protected:
  60. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  61. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  62. //}}AFX_VIRTUAL
  63. // Implementation
  64. protected:
  65. virtual ~CChildFormView();
  66. #ifdef _DEBUG
  67. virtual void AssertValid() const;
  68. virtual void Dump(CDumpContext& dc) const;
  69. #endif
  70. // Generated message map functions
  71. //{{AFX_MSG(CChildFormView)
  72. afx_msg void OnSelendokComboSelType();
  73. afx_msg void OnSelendokComboColorTheme();
  74. //}}AFX_MSG
  75. afx_msg LRESULT OnColorChanged(WPARAM wParam,LPARAM lParam);
  76. afx_msg LRESULT OnColorSelectCustom(WPARAM wParam, LPARAM lParam);
  77. afx_msg LRESULT OnColorChangedFinally(WPARAM wParam, LPARAM lParam);
  78. DECLARE_MESSAGE_MAP()
  79. private:
  80. void CheckControls();
  81. bool m_bInitComplete;
  82. };
  83. /////////////////////////////////////////////////////////////////////////////
  84. //{{AFX_INSERT_LOCATION}}
  85. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  86. #endif // !defined(AFX_CHILDFORMVIEW_H__5A1BD4EF_2576_4480_BC1A_54B9357C8DC8__INCLUDED_)