stmpatheventhandle.h

来自「交通地图编辑系统」· C头文件 代码 · 共 37 行

H
37
字号
// STMPathEventHandle.h: interface for the CSTMPathEventHandle class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STMPATHEVENTHANDLE_H__C392690E_CBA6_436C_A9C4_5031668CA8F9__INCLUDED_)
#define AFX_STMPATHEVENTHANDLE_H__C392690E_CBA6_436C_A9C4_5031668CA8F9__INCLUDED_

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

#include "stmeditordoc.h"

class CSTMPathEventHandle  
{
public:
	void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	void OnLButtonDown(UINT nFlags, CPoint point);
	void DrawAllPathes();
	CSTMPathEventHandle();
	virtual ~CSTMPathEventHandle();
	void OnMouseMove(UINT nFlags, CPoint point);
	void OnRButtonUp(UINT nFlags, CPoint point);
	void OnLButtonUp(UINT nFlags, CPoint point);
	void DrawPath(int index);
	CSTMEditorDoc *m_pDoc;
	CScrollView *	m_pMapView;
private:
	void XORtraceLine();
	POINT CalcHitPoint(int begin, int end);
	PATHINFO	m_hotPath;
	POINT		m_traceLineBegin,m_traceLineEnd;

};

#endif // !defined(AFX_STMPATHEVENTHANDLE_H__C392690E_CBA6_436C_A9C4_5031668CA8F9__INCLUDED_)

⌨️ 快捷键说明

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