basetool.h

来自「利用虚函数实现鼠标键盘事件的模块化」· C头文件 代码 · 共 29 行

H
29
字号
//BaseTool.h

#if     _MSC_VER > 1000
#pragma once
#endif

#ifndef _INC_BASETOOL
#define _INC_BASETOOL

#include <math.h>

class CBaseTool
{
public:
	CView* m_pViewObj;

	CBaseTool(CView* pMyViewObj)
	{
		m_pViewObj = pMyViewObj;
	}

	virtual short OnProMouse(UINT msg, CPoint* point, UINT nFlag)
	{
		return 1;	
	}
};


#endif

⌨️ 快捷键说明

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