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

对话框与窗口

开发平台:

Visual C++

  1. // CntrItem.h : interface of the CRibbonSampleCntrItem class
  2. //
  3. #if !defined(AFX_CNTRITEM_H__4AB69C50_A727_4E11_ABA5_885476ECD247__INCLUDED_)
  4. #define AFX_CNTRITEM_H__4AB69C50_A727_4E11_ABA5_885476ECD247__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. class CRibbonSampleDoc;
  9. class CRibbonSampleView;
  10. class CRibbonSampleCntrItem : public CRichEditCntrItem
  11. {
  12. DECLARE_SERIAL(CRibbonSampleCntrItem)
  13. // Constructors
  14. public:
  15. CRibbonSampleCntrItem(REOBJECT* preo = NULL, CRibbonSampleDoc* pContainer = NULL);
  16. // Note: pContainer is allowed to be NULL to enable IMPLEMENT_SERIALIZE.
  17. //  IMPLEMENT_SERIALIZE requires the class have a constructor with
  18. //  zero arguments.  Normally, OLE items are constructed with a
  19. //  non-NULL document pointer.
  20. // Attributes
  21. public:
  22. CRibbonSampleDoc* GetDocument()
  23. { return (CRibbonSampleDoc*)CRichEditCntrItem::GetDocument(); }
  24. CRibbonSampleView* GetActiveView()
  25. { return (CRibbonSampleView*)CRichEditCntrItem::GetActiveView(); }
  26. // ClassWizard generated virtual function overrides
  27. //{{AFX_VIRTUAL(CRibbonSampleCntrItem)
  28. public:
  29. int m_nImage;
  30. protected:
  31. //}}AFX_VIRTUAL
  32. void OnDeactivateUI(BOOL bUndoable);
  33. void OnActivate();
  34. void ActiveStateChanged(BOOL bActive);
  35. // Implementation
  36. public:
  37. ~CRibbonSampleCntrItem();
  38. #ifdef _DEBUG
  39. virtual void AssertValid() const;
  40. virtual void Dump(CDumpContext& dc) const;
  41. #endif
  42. };
  43. /////////////////////////////////////////////////////////////////////////////
  44. //{{AFX_INSERT_LOCATION}}
  45. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  46. #endif // !defined(AFX_CNTRITEM_H__4AB69C50_A727_4E11_ABA5_885476ECD247__INCLUDED_)