mbutton.h

来自「飞虹 vision仿windows开发」· C头文件 代码 · 共 27 行

H
27
字号
#include"\sunshine\include\mobj.h"
#if !defined(MBUTTON_H)
#define MBUTTON_H
class MButton : public MObj
 {
  private:
	 char *status;
	 int sm;
	 int trans;
  protected:
	 int BS;  //BS=0 not pressed and other is pressed
	 char *topic;
  public:
	MButton():MObj(){}
	MButton(int x,int y,int w,int h,char *name,char *idname,char *stat,int k=1);
	virtual ~MButton();
	int GetBS(){return BS;}
	char *GetMes(){return status;}
	virtual char far * Nameof(){ return "button";}
	virtual void GetFocus();
	virtual void UnFocus();
	virtual int Process();
	virtual int F(){return 1;}
	//Above Function is a very important member
	//It actes when the Button is pressed
 };
#endif

⌨️ 快捷键说明

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