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

📄 setmap.h

📁 寻找最短路系统vc实现
💻 H
字号:
#if !defined(AFX_SETMAP_H__B4CBE1F9_2C43_4D31_BE90_5326C549864C__INCLUDED_)
#define AFX_SETMAP_H__B4CBE1F9_2C43_4D31_BE90_5326C549864C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SetMap.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSetMap dialog

class CSetMap : public CDialog
{
// Construction
public:
	void ResetAll();
	int GetPoint(POINT p);
	CSetMap(CWnd* pParent = NULL);   // standard constructor
    BOOL bSetPoint,bSetDistance;
	COLORREF curColor;
	POINT points[100];
	double distances[100][100];
	int point_nums;
	int line_nums;
	RECT mapRect;
	bool line_start;
	BOOL bmodify_distance;
	int startp,endp;
	CRect map;
	BOOL bclear_point,bclear_line;
// Dialog Data
	//{{AFX_DATA(CSetMap)
	enum { IDD = IDD_DIALOG1 };
	CButton	m_clear_line;
	CButton	m_clear_point;
	CButton	m_modify_distance;
	CButton	m_input_point;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSetMap)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSetMap)
	afx_msg void OnOkk();
	afx_msg void OnCancell();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnInputPoint();
	afx_msg void OnInputDistance();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg void OnModifyDistance();

	afx_msg void OnClearPoint();
	afx_msg void OnClearLine();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SETMAP_H__B4CBE1F9_2C43_4D31_BE90_5326C549864C__INCLUDED_)

⌨️ 快捷键说明

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