cntritem.h

来自「mfc windows程序设计教材 非常好的 从api 到模拟 c++ 类的 」· C头文件 代码 · 共 62 行

H
62
字号
// CntrItem.h : interface of the CContainerAppCntrItem class
//

#if !defined(AFX_CNTRITEM_H__04931A19_6275_11D1_AB9F_50B153C10000__INCLUDED_)
#define AFX_CNTRITEM_H__04931A19_6275_11D1_AB9F_50B153C10000__INCLUDED_

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

class CContainerAppDoc;
class CContainerAppView;

class CContainerAppCntrItem : public COleClientItem
{
	DECLARE_SERIAL(CContainerAppCntrItem)

// Constructors
public:
	CContainerAppCntrItem(CContainerAppDoc* 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:
	CContainerAppDoc* GetDocument()
		{ return (CContainerAppDoc*)COleClientItem::GetDocument(); }
	CContainerAppView* GetActiveView()
		{ return (CContainerAppView*)COleClientItem::GetActiveView(); }

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CContainerAppCntrItem)
	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);
	//}}AFX_VIRTUAL

// Implementation
public:
	CRect m_objectRect;
	~CContainerAppCntrItem();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
	virtual void Serialize(CArchive& ar);
protected:
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CNTRITEM_H__04931A19_6275_11D1_AB9F_50B153C10000__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?