home *** CD-ROM | disk | FTP | other *** search
/ BUG 4 / BUGCD1997_05.BIN / aplic / visualj / vjtrial.exe / RCDATA / CABINET / mfcapwz.dll / TEMPLATE / CNTRITEM.H < prev    next >
C/C++ Source or Header  |  1997-01-28  |  2KB  |  75 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.     virtual void OnGetItemPosition(CRect& rPosition);
  49.     virtual void OnDeactivateUI(BOOL bUndoable);
  50.     virtual BOOL OnChangeItemPosition(const CRect& rectPos);
  51. $$IF(CONTAINER_SERVER)
  52.     virtual BOOL CanActivate();
  53. $$ENDIF
  54. $$ENDIF //!CRichEditView
  55.     //}}AFX_VIRTUAL
  56.  
  57. // Implementation
  58. public:
  59.     ~$$CNTRITEM_CLASS$$();
  60. #ifdef _DEBUG
  61.     virtual void AssertValid() const;
  62.     virtual void Dump(CDumpContext& dc) const;
  63. #endif
  64. $$IF(!CRichEditView)
  65.     virtual void Serialize(CArchive& ar);
  66. $$ENDIF //!CRichEditView
  67. };
  68.  
  69. /////////////////////////////////////////////////////////////////////////////
  70.  
  71. //{{AFX_INSERT_LOCATION}}
  72. // $$INSERT_LOCATION_COMMENT$$
  73.  
  74. #endif // !defined($$FILE_NAME_SYMBOL$$_INCLUDED_)
  75.