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

📄 地图着色dlg.h

📁 地图着色把地图上的每个城市抽象为一个点
💻 H
字号:
// 地图着色Dlg.h : 头文件
//

#pragma once
#include "core.h"
const int HALF_VERTEX_SIZE = 15;


// CMyDlg 对话框
class CMyDlg : public CDialog
{
// 构造
public:
	CMyDlg(CWnd* pParent = NULL);	// 标准构造函数

// 对话框数据
	enum { IDD = IDD_MY_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持


// 实现
protected:
	HICON m_hIcon;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnBnClickedOk();
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnBnClickedButton1();
	afx_msg void OnDestroy();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);

// user member
public:
	Graph graph;
	bool pointInBox(const Graph& graph, const CPoint& point, int& boxId);
	CBrush brush[6];
	CPen blackPen;
	void initiateProperty();
	void drawGraph(const Graph& graph, CPaintDC& dc);
	vector<CPoint> linesPoint;

};

⌨️ 快捷键说明

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