PropertyView.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #pragma once
  2. // CPropertyView view
  3. #include "SkinBuilderDoc.h"
  4. class CPropertyView : public CView
  5. {
  6. DECLARE_DYNCREATE( CPropertyView )
  7. protected:
  8. CPropertyView(); // protected constructor used by dynamic creation
  9. virtual ~CPropertyView();
  10. public:
  11. CSPPropertyGrid m_wndPropertyGrid;
  12. CSPPropertyGrid m_wndPropertyApplication;
  13. CSPPropertyGrid m_wndPropertyWindow;
  14. CSPPropertyGrid m_wndPropertyWinButton;
  15. CSPPropertyGrid m_wndPropertyScrollBar;
  16. CSPPropertyGrid m_wndPropertyButton;
  17. CSPPropertyGrid m_wndPropertyRadio;
  18. CSPPropertyGrid m_wndPropertyCheckBox;
  19. CSPPropertyGrid m_wndPropertyGroupBox;
  20. CSPPropertyGrid m_wndPropertyStatic;
  21. CSPPropertyGrid m_wndPropertyEdit;
  22. CSPPropertyGrid m_wndPropertyComboBox;
  23. CSPPropertyGrid m_wndPropertyListBox;
  24. CSPPropertyGrid m_wndPropertyHeader;
  25. CSPPropertyGrid m_wndPropertySpin;
  26. CSPPropertyGrid m_wndPropertyToolBar;
  27. CSPPropertyGrid m_wndPropertyStatusBar;
  28. CSPPropertyGrid m_wndPropertySlider;
  29. CSPPropertyGrid m_wndPropertyPopupMenu;
  30. CSPPropertyGrid m_wndPropertyProgress;
  31. CSPPropertyGrid m_wndPropertyTab;
  32. CString m_strAssemblyName;
  33. CString m_strOutputType;
  34. public:
  35. void CreatePropertyApplication( ApplicationSkin * pAllicationSkin );
  36. void CreatePropertyWindow();
  37. void CreatePropertyWindButton();
  38. void CreatePropertyScrollBar();
  39. void CreatePropertyButton();
  40. void CreatePropertyRadio();
  41. void CreatePropertyCheckBox();
  42. void CreatePropertyGroupBox();
  43. void CreatePropertyEdit();
  44. void CreatePropertyListBox();
  45. void CreatePropertyComboBox();
  46. void CreatePropertyStatic();
  47. void CreatePropertyHeader();
  48. void CreatePropertySpin();
  49. void CreatePropertyToolBar();
  50. void CreatePropertyStatusBar();
  51. void CreatePropertySlider();
  52. void CreatePropertyPopupMenu();
  53. void CreatePropertyProgress();
  54. void CreatePropertyTab();
  55. void SetWindowSkin( CWindowSkin * pwinSkin );
  56. void SetApplication( ApplicationSkin * pApp );
  57. void SetWinButtonSkin( CWinButtonSkin * pWinButton );
  58. void SetScroolBarSkin( CScrollBarSkin * pScrollBar );
  59. void SetButtonSkin( CButtonSkin * pButtonSkin );
  60. void SetCheckBoxSkin( CCheckBoxSkin * pCheckBoxSkin );
  61. void SetRadioSkin( CRadioSkin * pRadioSkin );
  62. void SetGroupBoxSkin( CGroupBoxSkin * pGroupBoxSkin );
  63. void SetStaticSkin( CStaticSkin * pStaticSkin );
  64. void SetEditSkin( CEditSkin * pEditSkin );
  65. void SetComboxSkin( CComboBoxSkin * pComboBoxSkin );
  66. void SetListBoxSkin( CListBoxSkin * pListBoxSkin );
  67. void SetPopupMenuSkin( CPopupMenuSkin * pPopupMenuSkin );
  68. void SetSpinSkin( CSpinSkin * pSpinSkin );
  69. void SetProgressSkin( CProgressSkin * pProgressSkin );
  70. void SetSliderSkin( CSliderSkin * pSliderSkin );
  71. void SetHeaderSkin( CHeaderSkin * pHeaderSkin );
  72. void SetTabSkin( CTabSkin * pTabSkin );
  73. void SetStatusSkin( CStatusBarSkin * pStatusbarSkin );
  74. void SetToolBarSkin( CToolBarSkin * pToolbarSkin );
  75. // void SetWindowSkin(CWindowSkin *pwinSkin);
  76. CSkinBuilderDoc * GetDocument() const;
  77. virtual void OnDraw( CDC * pDC ); // overridden to draw this view
  78. virtual void OnUpdate( CView* /*pSender*/ , LPARAM /*lHint*/ , CObject* /*pHint*/ );
  79. public:
  80. afx_msg int OnCreate( LPCREATESTRUCT lpCreateStruct );
  81. afx_msg void OnSize( UINT nType , int cx , int cy );
  82. afx_msg LRESULT OnGridNotify( WPARAM wParam , LPARAM lParam );
  83. DECLARE_MESSAGE_MAP()//ÏûÏ¢Ó³Éä;
  84. };
  85. inline CSkinBuilderDoc * CPropertyView::GetDocument() const
  86. {
  87. return reinterpret_cast< CSkinBuilderDoc * >( m_pDocument );
  88. }