home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Troubleshooting Netware Systems
/
CSTRIAL0196.BIN
/
attach
/
msj
/
v10n04
/
olecont.exe
/
CONTITEM.H
< prev
next >
Wrap
C/C++ Source or Header
|
1995-04-01
|
2KB
|
60 lines
// contitem.h : interface of the CContainerItem class
//
class CContainerDoc;
class CContainerView;
class CContainerItem : public CControlItem
{
DECLARE_SERIAL(CContainerItem)
// Constructors
public:
CContainerItem(CContainerDoc* 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:
// Document and view attributes
CContainerDoc* GetDocument()
{ return (CContainerDoc*)COleClientItem::GetDocument(); }
CContainerView* GetActiveView()
{ return (CContainerView*)COleClientItem::GetActiveView(); }
// Size Attributes
CRect m_rect;
CSize m_extent;
// Operations
public:
void Move(CRect &rc);
BOOL UpdateExtent();
void Invalidate(CView* pNotThisView = NULL);
BOOL UpdateItemExtentFromServer();
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CContainerItem)
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);
virtual void OnUpdateFrameTitle();
//}}AFX_VIRTUAL
// Implementation
public:
~CContainerItem();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
virtual void Serialize(CArchive& ar);
};
/////////////////////////////////////////////////////////////////////////////