home *** CD-ROM | disk | FTP | other *** search
/ Media Share 13 / mediashare_13.zip / mediashare_13 / ZIPPED / PROGRAM / WTJ9403.ZIP / CONTAIN / CNTRITEM.H < prev    next >
C/C++ Source or Header  |  1994-01-06  |  1KB  |  43 lines

  1. // cntritem.h : interface of the CContainCntrItem class
  2. //
  3.  
  4. class CContainDoc;
  5. class CContainView;
  6.  
  7. class CContainCntrItem : public COleClientItem
  8. {
  9.     DECLARE_SERIAL(CContainCntrItem)
  10.  
  11. // Constructors
  12. public:
  13.     CContainCntrItem(CContainDoc* pContainer = NULL);
  14.         // Note: pContainer is allowed to be NULL to enable IMPLEMENT_SERIALIZE.
  15.         //  IMPLEMENT_SERIALIZE requires the class have a constructor with
  16.         //  zero arguments.  Normally, OLE items are constructed with a
  17.         //  non-NULL document pointer.
  18.  
  19. // Attributes
  20. public:
  21.     CContainDoc* GetDocument()
  22.         { return (CContainDoc*)COleClientItem::GetDocument(); }
  23.     CContainView* GetActiveView()
  24.         { return (CContainView*)COleClientItem::GetActiveView(); }
  25.  
  26. // Implementation
  27. public:
  28.     ~CContainCntrItem();
  29. #ifdef _DEBUG
  30.     virtual void AssertValid() const;
  31.     virtual void Dump(CDumpContext& dc) const;
  32. #endif
  33.     virtual void Serialize(CArchive& ar);
  34.     virtual void OnGetItemPosition(CRect& rPosition);
  35.     virtual void OnDeactivateUI(BOOL bUndoable);
  36.  
  37. protected:
  38.     virtual void OnChange(OLE_NOTIFICATION wNotification, DWORD dwParam);
  39.     virtual BOOL OnChangeItemPosition(const CRect& rectPos);
  40. };
  41.  
  42. /////////////////////////////////////////////////////////////////////////////
  43.