showobjectview.h

来自「深入浅出Visual C++入门进阶与应用实例 随书光盘 作者 何志丹」· C头文件 代码 · 共 62 行

H
62
字号
#if !defined(AFX_SHOWOBJECTVIEW_H__AFC91DED_E8FA_4C7A_A85A_D050A5276393__INCLUDED_)
#define AFX_SHOWOBJECTVIEW_H__AFC91DED_E8FA_4C7A_A85A_D050A5276393__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ShowObjectView.h : header file
//
#include "RectangleObj.h"
/////////////////////////////////////////////////////////////////////////////
// CShowObjectView view

#define  WM_ADD_OBJECT	WM_USER + 100 
#define  WM_DEL_OBJECT	WM_USER + 101 
#define  WM_SETP_OBJECT	WM_USER + 102

class CShowObjectView : public CView
{
protected:
	CShowObjectView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CShowObjectView)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CShowObjectView)
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CShowObjectView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	CObjManage	m_RectangleManage ;
	//{{AFX_MSG(CShowObjectView)
	afx_msg	void Step();
	afx_msg	void DeleteObject();
	afx_msg	void AddObject();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SHOWOBJECTVIEW_H__AFC91DED_E8FA_4C7A_A85A_D050A5276393__INCLUDED_)

⌨️ 快捷键说明

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