home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 December / PCWKCD1296.iso / vjplusb / msdev / bin / ide / mfcapwz.dll / TEMPLATE / CNTRITEM.H < prev    next >
C/C++ Source or Header  |  1996-07-12  |  2KB  |  63 lines

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