// CntrItem.h : interface of the CMyex35bCntrItem class
//

#if !defined(AFX_CNTRITEM_H__547FA5E3_D526_4AAC_9176_35B54FA35FE0__INCLUDED_)
#define AFX_CNTRITEM_H__547FA5E3_D526_4AAC_9176_35B54FA35FE0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CMyex35bDoc;
class CMyex35bView;

class CMyex35bCntrItem : public COleClientItem
{
	DECLARE_SERIAL(CMyex35bCntrItem)

// Constructors
public:
	CMyex35bCntrItem(CMyex35bDoc* 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:
	CMyex35bDoc* GetDocument()
		{ return (CMyex35bDoc*)COleClientItem::GetDocument(); }
	CMyex35bView* GetActiveView()
		{ return (CMyex35bView*)COleClientItem::GetActiveView(); }

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyex35bCntrItem)
	public:
	virtual void OnChange(OLE_NOTIFICATION wNotification, DWORD dwParam);
	virtual void OnActivate();
	protected:
	virtual void OnGetItemPosition(CRect& rPosition);
	virtual void OnDeactivateUI(BOOL bUndoable);
	virtual BOOL OnChangeItemPosition(const CRect& rectPos);
	virtual BOOL CanActivate();
	//}}AFX_VIRTUAL

// Implementation
public:
	~CMyex35bCntrItem();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
	virtual void Serialize(CArchive& ar);
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CNTRITEM_H__547FA5E3_D526_4AAC_9176_35B54FA35FE0__INCLUDED_)

