stmbseventhandle.h

来自「stmeditor 城市公交地图编辑器源代码 sample 生成的地图样例 」· C头文件 代码 · 共 35 行

H
35
字号
// STMBSEventHandle.h: interface for the CSTMBSEventHandle class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STMBSEVENTHANDLE_H__C8878AAC_352E_405B_B90D_CA2A79B595D1__INCLUDED_)
#define AFX_STMBSEVENTHANDLE_H__C8878AAC_352E_405B_B90D_CA2A79B595D1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "stmeditordoc.h"

class CSTMBSEventHandle  
{
public:
	CSTMBSEventHandle();
	virtual ~CSTMBSEventHandle();
public:
	void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	void DrawAllBSes();
	void OnLButtonDown(UINT nFlags, CPoint point);
	void OnMouseMove(UINT nFlags, CPoint point);
	void OnRButtonUp(UINT nFlags, CPoint point);
	void OnLButtonUp(UINT nFlags, CPoint point);

	CSTMEditorDoc *m_pDoc;
	CScrollView *	m_pMapView;
	void DrawBS(int index);
private:
	BOOL CanBSMove();
	BSINFO	m_hotBS;
};

#endif // !defined(AFX_STMBSEVENTHANDLE_H__C8878AAC_352E_405B_B90D_CA2A79B595D1__INCLUDED_)

⌨️ 快捷键说明

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