home *** CD-ROM | disk | FTP | other *** search
- // cntritem.h : interface of the CContCntrItem class
- //
-
- class CContDoc;
- class CContView;
-
- class CContCntrItem : public COleClientItem
- {
- DECLARE_SERIAL(CContCntrItem)
-
- // Constructors
- public:
- CContCntrItem(CContDoc* pContainer = NULL);
- // Note: pContainer is allowed to be NULL to enable IMPLEMENT_SERIALIZE.
- // IMPLEMENT_SERIALIZE requires the class have a constructor with
- // zero arguments. Normally, OLE items are constructed with a
- // non-NULL document pointer.
-
- // Attributes
- public:
- CContDoc* GetDocument()
- { return (CContDoc*)COleClientItem::GetDocument(); }
- CContView* GetActiveView()
- { return (CContView*)COleClientItem::GetActiveView(); }
-
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CContCntrItem)
- public:
- virtual void OnChange(OLE_NOTIFICATION wNotification, DWORD dwParam);
- protected:
- virtual void OnGetItemPosition(CRect& rPosition);
- virtual void OnDeactivateUI(BOOL bUndoable);
- virtual BOOL OnChangeItemPosition(const CRect& rectPos);
- //}}AFX_VIRTUAL
-
- // Implementation
- public:
- ~CContCntrItem();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- virtual void Serialize(CArchive& ar);
- };
-
- /////////////////////////////////////////////////////////////////////////////
-