upview.h

来自「实现了2D地图编辑器的基本功能」· C头文件 代码 · 共 40 行

H
40
字号
#pragma once

// CUpView 视图
typedef struct mesh
{
	int i;
	RECT  rect;
	POINT point;
}MESH;

class CUpView : public CView
{
	DECLARE_DYNCREATE(CUpView)

protected:
	CUpView();           // 动态创建所使用的受保护的构造函数
	virtual ~CUpView();

public:
	virtual void OnDraw(CDC* pDC);      // 重写以绘制该视图
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

protected:
	DECLARE_MESSAGE_MAP()
public:
    afx_msg void OnPaint();
public:
	int     x1,y1;
	MESH    m_bmesh[50][50];
public:
    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
};


⌨️ 快捷键说明

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