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

对话框与窗口

开发平台:

Visual C++

  1. // GallerySampleView.h : interface of the CGallerySampleView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_GALLERYSAMPLEVIEW_H__A8624FF3_1A17_4566_9D54_FCF41A54EB31__INCLUDED_)
  5. #define AFX_GALLERYSAMPLEVIEW_H__A8624FF3_1A17_4566_9D54_FCF41A54EB31__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CGallerySampleCntrItem;
  10. class CGallerySampleView : public CRichEditView
  11. {
  12. protected: // create from serialization only
  13. CGallerySampleView();
  14. DECLARE_DYNCREATE(CGallerySampleView)
  15. // Attributes
  16. public:
  17. CGallerySampleDoc* GetDocument();
  18. COLORREF m_clrText;
  19. COLORREF m_clrBack;
  20. void OnButtonText();
  21. void OnButtonBack();
  22. // Operations
  23. public:
  24. // Overrides
  25. // ClassWizard generated virtual function overrides
  26. //{{AFX_VIRTUAL(CGallerySampleView)
  27. public:
  28. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  29. protected:
  30. virtual void OnInitialUpdate(); // called first time after construct
  31. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. public:
  35. virtual ~CGallerySampleView();
  36. #ifdef _DEBUG
  37. virtual void AssertValid() const;
  38. virtual void Dump(CDumpContext& dc) const;
  39. #endif
  40. protected:
  41. // Generated message map functions
  42. protected:
  43. //{{AFX_MSG(CGallerySampleView)
  44. afx_msg void OnDestroy();
  45. afx_msg void OnFormatFontcolorAutomatic();
  46. afx_msg void OnUpdateFormatFontcolorAutomatic(CCmdUI* pCmdUI);
  47. afx_msg void OnFormatFontcolorMorecolors();
  48. afx_msg void OnFormatFontcolorNoHighlight();
  49. //}}AFX_MSG
  50. void OnUpdateGalleryFontBackColor(CCmdUI* pCmdUI);
  51. void OnGalleryFontBackColor(NMHDR* pNMHDR, LRESULT* pResult);
  52. void OnUpdateGalleryFontTextColor(CCmdUI* pCmdUI);
  53. void OnGalleryFontTextColor(NMHDR* pNMHDR, LRESULT* pResult);
  54. void OnUpdateGalleryFontFace(CCmdUI* pCmdUI);
  55. void OnUpdateGalleryFontSize(CCmdUI* pCmdUI);
  56. void OnUpdateBack(CCmdUI* pCmdUI);
  57. void OnUpdateButtonText(CCmdUI* pCmd);
  58. DECLARE_MESSAGE_MAP()
  59. void OnEditFont(NMHDR* pNMHDR, LRESULT* pResult);
  60. void OnUpdateComboFont(CCmdUI* pCmd);
  61. void OnUpdateComboSize(CCmdUI* pCmd);
  62. void OnEditSize(NMHDR* pNMHDR, LRESULT* pResult);
  63. void OnEmptyCommand();
  64. void OnUpdateEditUndo(CCmdUI* pCmd);
  65. void OnEditUndo(NMHDR* pNMHDR, LRESULT* pResult);
  66. };
  67. #ifndef _DEBUG  // debug version in GallerySampleView.cpp
  68. inline CGallerySampleDoc* CGallerySampleView::GetDocument()
  69.    { return (CGallerySampleDoc*)m_pDocument; }
  70. #endif
  71. /////////////////////////////////////////////////////////////////////////////
  72. //{{AFX_INSERT_LOCATION}}
  73. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  74. #endif // !defined(AFX_GALLERYSAMPLEVIEW_H__A8624FF3_1A17_4566_9D54_FCF41A54EB31__INCLUDED_)