tstatic.h

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

H
33
字号
#ifndef __TSTATIC_H
#define __TSTATIC_H

#include "yyxctrl.h"

#define ALIGN_LEFT 		0
#define ALIGN_MIDDLE 	1
#define ALIGN_RIGHT		2

typedef class tstatic_class Tstatic;

class tstatic_class: public Tcontrol {
public:
////////////////////////////////////////////////////////in pixels
	int text_pos_x;
	int text_pos_y;

	int static_type;
////////////////////////////////////////////////////////in chars
//	max_value represents is always 0
//  min_value is always 0
//  current_value  is always 0
	char text[255];
public:
	tstatic_class(int ID,char *title_hotkey,
		int left,int top,int width,int height,char *default_text,
		int atype=ALIGN_LEFT);

virtual	void  draw ();
};


#endif

⌨️ 快捷键说明

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