dialog.h

来自「DOS下的图形界面开发包」· C头文件 代码 · 共 30 行

H
30
字号
#ifndef __DIALOG_H
#define __DIALOG_H

#include "yyxwin.h"
#include "button.h"

typedef class dialog_class Tdialog;

#define OK_ID 		1
#define CANCEL_ID	2

#define Dlg_OK		2
#define Dlg_CANCEL  3
#define Sys_QUIT 	0xff

class dialog_class :public Twin {
public:
	Tbutton * ok_button;
	Tbutton * cancel_button;
protected:
	char ok_string[25];
	char cancel_string[25];
public:
	dialog_class(int ID,char *title,int left,int top,int width,int height);
virtual int  msg_handler (MSG& message);
//virtual	~dialog_class ();
};


#endif

⌨️ 快捷键说明

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