commamd.h

来自「串口 操作 源码 打标机的控制程序」· C头文件 代码 · 共 25 行

H
25
字号
#ifndef _Command_h_
#define _Command_h_

#include "base.h"

#ifdef __cplusplus

class CCommand
{
protected:
	int		m_nStep ; // 命令操作步
public:
	CCommand() {}
	~CCommand() {}

	virtual int GetType() = 0; // 返回命令类型 ECommandType
	virtual int OnLButtonDown(UINT nFlags, const Position& pos) = 0 ;
	virtual int OnMouseMove(UINT nFlags, const Position& pos) = 0 ;
	virtual int OnRButtonDown(UINT nFlags, const Position& pos) = 0 ;
	virtual int Cancel() = 0 ;
} ;

#endif

#endif

⌨️ 快捷键说明

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