⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 upview.h

📁 实现了2D地图编辑器的基本功能
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -