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

📄 aseview.h

📁 游戏编程AI源码
💻 H
字号:

#ifndef _AFX_ASEVIEW_H_
#define _AFX_ASEVIEW_H_

#if _MSC_VER > 1000
#pragma once
#endif

#include "pathfinder.h"

class CAseView : CView
{
protected:
	CAseView();
	DECLARE_DYNCREATE(CAseView)

public:
//	bool	DebugSet() { return (m_cDebug.x != -1); }
	void	HighlightNode(_asNode *, bool);
	void	RemoveHighlight();

	CAseDoc *GetDocument();

	// Virtual and inline functions

	virtual ~CAseView();
	inline void SetBrushType(UINT b) { m_uBrushType = b; }

	//{{AFX_VIRTUAL(CAseView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	bool		m_bDragging;

	UINT		m_uBrushType;

	CPoint		m_cStart;
	CPoint		m_cEnd;
	CPoint		m_cHilight;

	_asNode *	m_cHilightNode;

	void		DrawRectangle(int, int, CDC *, COLORREF);
	void		DrawCircle(int, int, CDC *, COLORREF);
	void		DrawRoute(CDC *);
	void		MouseToPoint(CPoint, UINT);

	//{{AFX_MSG(CAseView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG
inline CAseDoc* CAseView::GetDocument()
   { return (CAseDoc*)m_pDocument; }
#endif

//{{AFX_INSERT_LOCATION}}

#endif

⌨️ 快捷键说明

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