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

📄 asix_wn.h

📁 国家ASIC工程中心使用的嵌入式操作系统
💻 H
字号:
/*************************************************************************
*
* Copyright  2000 National ASIC Center, All right Reserved
*
* FILE NAME:			asix_wn.h
* PROGRAMMER:			Lingming
* Date of Creation:		2001/02/19
* 
* DESCRIPTION: 			The asix win container control implementation. this 
*						file defines the control related infomation. 
*
* NOTE:			 		
*
* FUNCTIONS LIST:
* fun1(arg1,arg2)		description of func1
* fun2(arg1,arg2,arg3)	description of func2
*
* GLOBAL VARS LIST:
* 
*
**************************************************************************
* MODIFICATION HISTORY
*
* 2001/02/19	by Lingming		Creation of this file
*								
*							
*************************************************************************/


#ifndef		_ASIX_WN_H
#define		_ASIX_WN_H

#include "asixwin.h"
#include "asix_mn.h"

struct wn_ctrl {
	
	U32		classid;
	U32		wndid;
	
	U32		titleid;	/* title area id*/
	U32		clientid;	/* client area id */
	
	U32		close_wndid;	/* close box id */
	U32		sys_wndid;	/* system menu id*/
	U32		user_wndid;	/* user menu id*/
	
struct MENU_ITEM *usermenu_itemptr;
	
	P_U8	saved_screen;
	
};

/*where to start the caption by zl 2002.3.18*/
#define CAPTION_LEFT	2
#define CAPTION_UP	2


/*the width of the box by zl 2002.3.18*/
#define BOX_WIDTH		16
//#define BOX_HEIGHT	16

/*the height of the title by zl 2002.3.18*/
#define TITLE_HEIGHT	(CHINESE_CHAR_HEIGHT + 5)


#define MAX_SYSMENU		15
extern struct MENU_ITEM		SysMenu_Item[];/* sys menu item, all the task share the same data */
extern SYSTCB			*SysMenu_Taskptr[];/* indicate which task the menu item point to */ 

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

extern STATUS wn_caption(void *ctrl_str, char *caption, void *exdata);
extern STATUS wn_repaint(void *ctrl_str, U32 lparam);


#include "asixdbg.h"

#if ENABLE_ASIX_FORM_DEBUG_OUT

#define asix_wnprintf(str)	dbgprintf( str )
#define asix_wnoutput(str, var)	dbgoutput(str, var)
#define _asix_wndbgout(str)	_dbgout(#str)
#define asix_wnassert(p)	((p) ? 	(void)0 : \
								(void) _asix_wndbgout(Assertion failed:  ##p##, file ##__FILE__## , line  ##__LINE__## \n ))

// mem debug			
#define asix_wn_memdbgprintf(str)	dbgprintf( str )
#define asix_wn_memdbgoutput(str, var)	dbgoutput(str, var)

#else // disable asix button control debug

#define asix_wnprintf(str)
#define asix_wnoutput(str, var)
#define asix_wnassert(p)

#define asix_wn_memdbgprintf(str)	
#define asix_wn_memdbgoutput(str, var)	

#endif

#endif	//#ifndef	_ASIX_WN_H

⌨️ 快捷键说明

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