⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asix_st.h

📁 国家ASIC工程中心使用的嵌入式操作系统
💻 H
字号:
#ifndef _ASIX_ST_H
#define _ASIX_ST_H

struct st_ctrl {
	
	U32		classid;
	U32		wndid;

	P_U8	saved_screen;
	
};

//modified by xuanhui 2002/3/13
#define ST_INTERVAL			2		//在SS_TEXT风格中,一段文字四周所间隔的距离
#define ST_SPACE			4		//在SS_GROUP风格中, 清区域时的宽比控件宽所短的距离
#define ST_LINE_POSITION	(CHINESE_CHAR_HEIGHT+1)			//13	 modified by xuanhui 2002/3/28//在SS_GROUP风格中, 组合框上界离顶点的高度

//modified by xuanhui 2002/4/3
//#define ST_CLEAR_HEIGHT	(ST_LINE_POSITION+ST_SPACE)		//16  	 modified by xuanhui 2002/3/28	//在SS_GROUP风格中, 所清区域的高
//#define ST_TEXT_AREA		(ST_CLEAR_HEIGHT+1)				//17	 modified by xuanhui 2002/3/28//文本编辑区的高度
#define ST_TEXT_AREA		(CHINESE_CHAR_HEIGHT+1)	//文本编辑区的高度

extern STATUS st_create(char *caption, U32 style, U16 x, U16 y, U16 width, U16 hight,
				 U32 wndid, U32 menu, void **ctrl_str, void *exdata);
extern STATUS st_destroy(void *ctrl_str);
extern STATUS st_msgproc(U32 win_id, U16 asix_msg, U32 lparam, void *data, U16 wparam, void *reserved);
extern STATUS st_msgtrans(void *ctrl_str, U16 msg_type, U32 areaId, P_U16 data, U32 size, PMSG trans_msg);


extern STATUS st_repaint(void *ctrl_str, U32 lparam);
extern STATUS st_caption(void *ctrl_str, char *caption, void *exdata);

#include "asixdbg.h"

#if ENABLE_ASIX_STATIC_DEBUG_OUT

#define asix_stprintf(str)	dbgprintf( str )
#define asix_stoutput(str, var)	dbgoutput(str, var)
#define _asix_stdbgout(str)	_dbgout(#str)
#define asix_stassert(p)	((p) ? 	(void)0 : \
								(void) _asix_stdbgout(Assertion failed:  ##p##, file ##__FILE__## , line  ##__LINE__## \n ))

// mem debug			
#define asix_st_memdbgprintf(str)	dbgprintf( str )
#define asix_st_memdbgoutput(str, var)	dbgoutput(str, var)

#else // disable asix button control debug

#define asix_stprintf(str)
#define asix_stoutput(str, var)
#define asix_stassert(p)

#define asix_st_memdbgprintf(str)	
#define asix_st_memdbgoutput(str, var)	

#endif

#endif

⌨️ 快捷键说明

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