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

对话框与窗口

开发平台:

Visual C++

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MAINFRM_H__13B87AED_B4C8_4C74_B02E_38C2DDFC5AF8__INCLUDED_)
  5. #define AFX_MAINFRM_H__13B87AED_B4C8_4C74_B02E_38C2DDFC5AF8__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CMainFrame : public CXTPFrameWnd, CXTPOffice2007FrameHook
  10. {
  11. protected: // create from serialization only
  12. CMainFrame();
  13. DECLARE_DYNCREATE(CMainFrame)
  14. // Attributes
  15. public:
  16. // Operations
  17. public:
  18. // Overrides
  19. // ClassWizard generated virtual function overrides
  20. //{{AFX_VIRTUAL(CMainFrame)
  21. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  22. //}}AFX_VIRTUAL
  23. // Implementation
  24. public:
  25. virtual ~CMainFrame();
  26. #ifdef _DEBUG
  27. virtual void AssertValid() const;
  28. virtual void Dump(CDumpContext& dc) const;
  29. #endif
  30. public:  // control bar embedded members
  31. CXTPStatusBar  m_wndStatusBar;
  32. CXTPControlGalleryItems* m_pItemsShapes;
  33. CXTPControlGalleryItems* m_pItemsStyles;
  34. CXTPControlGalleryItems* m_pItemsStyleSet;
  35. CXTPControlGalleryItems* m_pItemsThemeColors;
  36. CXTPControlGalleryItems* m_pItemsThemeFonts;
  37. CXTPControlGalleryItems* m_pItemsTable;
  38. CXTPControlGalleryItems* m_pItemsFontTextColor;
  39. CXTPControlGalleryItems* m_pItemsFontBackColor;
  40. CXTPControlGalleryItems* m_pItemsFontFace;
  41. CXTPControlGalleryItems* m_pItemsFontSize;
  42. CXTPControlGalleryItems* m_pItemsUndo;
  43. void CreateGalleries();
  44. int m_nShape;
  45. int m_nStyle;
  46. int m_nStyleSet;
  47. int m_nThemeColors;
  48. int m_nThemeFonts;
  49. // Generated message map functions
  50. protected:
  51. //{{AFX_MSG(CMainFrame)
  52. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  53. afx_msg void OnClose();
  54. afx_msg void OnStylesChange();
  55. afx_msg void OnViewAnimate();
  56. afx_msg void OnUpdateViewAnimate(CCmdUI* pCmdUI);
  57. //}}AFX_MSG
  58. int OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl);
  59. void OnCustomize();
  60. void OnGalleryShapes(NMHDR* pNMHDR, LRESULT* pResult);
  61. void OnUpdateGalleryShapes(CCmdUI* pCmdUI);
  62. void OnGalleryStyles(NMHDR* pNMHDR, LRESULT* pResult);
  63. void OnUpdateGalleryStyles(CCmdUI* pCmdUI);
  64. void OnGalleryStyleSet(NMHDR* pNMHDR, LRESULT* pResult);
  65. void OnUpdateGalleryStyleSet(CCmdUI* pCmdUI);
  66. void OnGalleryThemeColors(NMHDR* pNMHDR, LRESULT* pResult);
  67. void OnUpdateGalleryThemeColors(CCmdUI* pCmdUI);
  68. void OnGalleryTable(NMHDR* pNMHDR, LRESULT* pResult);
  69. void OnUpdateGalleryTable(CCmdUI* pCmdUI);
  70. void OnGalleryThemeFonts(NMHDR* pNMHDR, LRESULT* pResult);
  71. void OnUpdateGalleryThemeFonts(CCmdUI* pCmdUI);
  72. void OnViewTheme(UINT nTheme);
  73. void OnUpdateViewTheme(CCmdUI* pCmdUI);
  74. void OnStylesPreviewStart(NMHDR* pHdr, LRESULT* presult);
  75. void OnStylesPreviewCancel(NMHDR* pHdr, LRESULT* presult);
  76. void OnStylesPreviewApply(NMHDR* pHdr, LRESULT* presult);
  77. void OnStylesPreviewChange(NMHDR* pHdr, LRESULT* presult);
  78. DECLARE_MESSAGE_MAP()
  79. };
  80. /////////////////////////////////////////////////////////////////////////////
  81. //{{AFX_INSERT_LOCATION}}
  82. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  83. #endif // !defined(AFX_MAINFRM_H__13B87AED_B4C8_4C74_B02E_38C2DDFC5AF8__INCLUDED_)