~childview.~h

来自「研究生算法作业著名的旅行者问题」· ~H 代码 · 共 71 行

~H
71
字号
// ChildView.h : interface of the CChildView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CHILDVIEW_H__07910022_7B24_4084_A121_200EEF57B600__INCLUDED_)
#define AFX_CHILDVIEW_H__07910022_7B24_4084_A121_200EEF57B600__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Traveling.h"
#include <afxtempl.h>
/////////////////////////////////////////////////////////////////////////////
// CChildView window

class CChildView : public CWnd
{
// Construction
public:
	CChildView();

// Attributes
public:
	CList<POINT,POINT> m_cityList;
private:
	void MallocMemory();
	void DrawDistence(POINT s,POINT d,int distence,CPaintDC &dc);
	void ReleaseMemory();
	BITMAP bmp;
	CTraveling trav;
	int m_cityCount;
	CBitmap m_bmCity;
	bool lsAddingList;
	int *order;
	int *a;
	int **b;
	int m_minDistence;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChildView)
	protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:

	virtual ~CChildView();

	// Generated message map functions
protected:
	//{{AFX_MSG(CChildView)
	afx_msg void OnPaint();
	afx_msg void OnBegin();
	afx_msg void OnReset();
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_CHILDVIEW_H__07910022_7B24_4084_A121_200EEF57B600__INCLUDED_)

⌨️ 快捷键说明

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