Скачиваний:
7
Добавлен:
01.05.2014
Размер:
1.87 Кб
Скачать
// CntrItem.h : interface of the CPart32CntrItem class
//

#if !defined(AFX_CNTRITEM_H__486C5F54_52DE_4736_B8C2_A965DC1C3209__INCLUDED_)
#define AFX_CNTRITEM_H__486C5F54_52DE_4736_B8C2_A965DC1C3209__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CPart32Doc;
class CPart32View;

class CPart32CntrItem : public COleClientItem
{
	DECLARE_SERIAL(CPart32CntrItem)

// Constructors
public:
	CPart32CntrItem(CPart32Doc* 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:
	CPart32Doc* GetDocument()
		{ return (CPart32Doc*)COleClientItem::GetDocument(); }
	CPart32View* GetActiveView()
		{ return (CPart32View*)COleClientItem::GetActiveView(); }

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPart32CntrItem)
	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:
	CRect m_Rect;

	~CPart32CntrItem();
#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__486C5F54_52DE_4736_B8C2_A965DC1C3209__INCLUDED_)
Соседние файлы в папке part32