home *** CD-ROM | disk | FTP | other *** search
/ distrib.akp.su/Programming/Vb-6+Rus/ / distrib.akp.su.tar / distrib.akp.su / Programming / Vb-6+Rus / COMMON / MSDEV98 / BIN / IDE / MFCAPWZ.DLL / TEMPLATE / CNTRITEM.H < prev    next >
C/C++ Source or Header  |  1998-06-18  |  2KB  |  77 lines

  1. // $$cntritem_hfile$$.h : interface of the $$CNTRITEM_CLASS$$ class
  2. //
  3.  
  4. #if !defined($$FILE_NAME_SYMBOL$$_INCLUDED_)
  5. #define $$FILE_NAME_SYMBOL$$_INCLUDED_
  6.  
  7. #if _MSC_VER > 1000
  8. #pragma once
  9. #endif // _MSC_VER > 1000
  10.  
  11. class $$DOC_CLASS$$;
  12. class $$VIEW_CLASS$$;
  13.  
  14. class $$CNTRITEM_CLASS$$ : public $$CNTRITEM_BASE_CLASS$$
  15. {
  16.     DECLARE_SERIAL($$CNTRITEM_CLASS$$)
  17.  
  18. // Constructors
  19. public:
  20. $$IF(CRichEditView)
  21.     $$CNTRITEM_CLASS$$(REOBJECT* preo = NULL, $$DOC_CLASS$$* pContainer = NULL);
  22. $$ELSE
  23.     $$CNTRITEM_CLASS$$($$DOC_CLASS$$* pContainer = NULL);
  24. $$ENDIF //CRichEditView
  25. $$IF(VERBOSE)
  26.         // Note: pContainer is allowed to be NULL to enable IMPLEMENT_SERIALIZE.
  27.         //  IMPLEMENT_SERIALIZE requires the class have a constructor with
  28.         //  zero arguments.  Normally, OLE items are constructed with a
  29.         //  non-NULL document pointer.
  30. $$ENDIF
  31.  
  32. // Attributes
  33. public:
  34.     $$DOC_CLASS$$* GetDocument()
  35.         { return ($$DOC_CLASS$$*)$$CNTRITEM_BASE_CLASS$$::GetDocument(); }
  36.     $$VIEW_CLASS$$* GetActiveView()
  37.         { return ($$VIEW_CLASS$$*)$$CNTRITEM_BASE_CLASS$$::GetActiveView(); }
  38.  
  39.     // ClassWizard generated virtual function overrides
  40.     //{{AFX_VIRTUAL($$CNTRITEM_CLASS$$)
  41.     public:
  42. $$IF(!CRichEditView)
  43.     virtual void OnChange(OLE_NOTIFICATION wNotification, DWORD dwParam);
  44.     virtual void OnActivate();
  45. $$ENDIF //!CRichEditView
  46.     protected:
  47. $$IF(!CRichEditView)
  48. $$IF(!ACTIVE_DOC_CONTAINER)
  49.     virtual void OnGetItemPosition(CRect& rPosition);
  50. $$ENDIF
  51.     virtual void OnDeactivateUI(BOOL bUndoable);
  52.     virtual BOOL OnChangeItemPosition(const CRect& rectPos);
  53. $$IF(CONTAINER_SERVER)
  54.     virtual BOOL CanActivate();
  55. $$ENDIF
  56. $$ENDIF //!CRichEditView
  57.     //}}AFX_VIRTUAL
  58.  
  59. // Implementation
  60. public:
  61.     ~$$CNTRITEM_CLASS$$();
  62. #ifdef _DEBUG
  63.     virtual void AssertValid() const;
  64.     virtual void Dump(CDumpContext& dc) const;
  65. #endif
  66. $$IF(!CRichEditView)
  67.     virtual void Serialize(CArchive& ar);
  68. $$ENDIF //!CRichEditView
  69. };
  70.  
  71. /////////////////////////////////////////////////////////////////////////////
  72.  
  73. //{{AFX_INSERT_LOCATION}}
  74. // $$INSERT_LOCATION_COMMENT$$
  75.  
  76. #endif // !defined($$FILE_NAME_SYMBOL$$_INCLUDED_)
  77.