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

📄 button.c

📁 一个minigui 工程框架,需要windows 下的minigui 开发环境
💻 C
📖 第 1 页 / 共 4 页
字号:
	
	
	// active frame topleft.x
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE;
		goto FAILED;
	}
	AcRect_TopLeft_x = GetLongVal(objstring,&pos);
	
	
	// active frame topleft.y 
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE; 
		goto FAILED;
	}
	AcRect_TopLeft_y = GetLongVal(objstring,&pos);
	
	
	// active frame bottom right .x
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE;
		goto FAILED;
	}
	AcRect_BottomRight_x = GetLongVal(objstring,&pos);
	
	
	// active frame bottom right .y
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE;
		goto FAILED;
	}
	AcRect_BottomRight_y = GetLongVal(objstring,&pos);
	
	
	
	// inactive frame face color.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE; 
		goto FAILED;
	}
	InAcRect_dwFaceColor = GetLongVal(objstring,&pos);
	
	// inactive frame frame color.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE;
		goto FAILED;
	}
	InAcRect_dwFrameColor = GetLongVal(objstring,&pos);
	
	
	
	//	// inactive frame frame thick.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE;
		goto FAILED;
	}
	InAcRect_eFrameThick = GetLongVal(objstring,&pos);
	
	
	// inactive frame face style.
	
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)
	{ 
		nReturn = FALSE;
		goto FAILED;
	}
	InAcRect_eFaceStyle = GetLongVal(objstring,&pos);
	
	
	
	// inactive frame top left .x
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE; 
		goto FAILED;
	}
	InAcRect_TopLeft_x = GetLongVal(objstring,&pos);
	
	// inactive frame top left .y
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  { 
		nReturn = FALSE; 
		goto FAILED;
	}
	InAcRect_TopLeft_y = GetLongVal(objstring,&pos);
	
	// inactive frame bottom right .x
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE;
		goto FAILED;
	}
	InAcRect_BottomRight_x = GetLongVal(objstring,&pos);
	
	// inactive frame bottom right .y 
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  { 
		nReturn = FALSE;
		goto FAILED;
	}
	InAcRect_BottomRight_y = GetLongVal(objstring,&pos);
	
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=1)  { 
		nReturn = FALSE; 
		goto FAILED;
	}
	AcImage_ImageName = GetStringVal(objstring,index._Length,&pos,0);
	//	assert(AcImage_ImageName);
	
	// active image fore color.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  { 
		nReturn = FALSE;
		goto FAILED;
	}
	AcImage_dwForeColor = GetLongVal(objstring,&pos);
	
	// active image back color.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  { 
		nReturn = FALSE; 
		goto FAILED;
	}
	AcImage_dwBackColor = GetLongVal(objstring,&pos);
	
	// active image status..
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE;
		goto FAILED;
	}
	AcImage_bStatus = (unsigned char)GetLongVal(objstring,&pos);
	
	// active image trans color.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE;
		goto FAILED;
	}
	AcImage_dwTransparenceColor = GetLongVal(objstring,&pos);
	
	// inactive image file name.
	
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=1)  { 
		nReturn = FALSE; 
		goto FAILED;
	}
	InAcImage_ImageName = GetStringVal(objstring,index._Length,&pos,0);
	//	assert(InAcImage_ImageName);
	
	
	// inactive image fore color.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE;
		goto FAILED;
	}
	InAcImage_dwForeColor = GetLongVal(objstring,&pos);
	
	
	// inactive image back color.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE;
		goto FAILED;
	}
	InAcImage_dwBackColor = GetLongVal(objstring,&pos);
	
	
	// inactive image status.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE; 
		goto FAILED;
	}
	InAcImage_bStatus = (unsigned char) GetLongVal(objstring,&pos);
	
	
	// inactive image trans color.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE; 
		goto FAILED;
	}
	InAcImage_dwTransparenceColor = GetLongVal(objstring,&pos);
	
	// active lock rect left.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  { 
		nReturn = FALSE;
		goto FAILED;
	}
	AcLockRect_left = GetLongVal(objstring,&pos);
	
	// active lock rect top.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE;
		goto FAILED;
	}
	AcLockRect_top = GetLongVal(objstring,&pos);
	
	// active lock rect right.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  { 
		nReturn = FALSE; 
		goto FAILED;
	}
	AcLockRect_right = GetLongVal(objstring,&pos);
	
	// active lock rect bottom.
	
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  { 
		nReturn = FALSE;
		goto FAILED;
	}
	AcLockRect_bottom = GetLongVal(objstring,&pos);
	
	// inactive lock rect left.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  { 
		nReturn = FALSE;
		goto FAILED;
	}
	InAcLockRect_left = GetLongVal(objstring,&pos);
	
	// inactive lock rect top.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE; 
		goto FAILED;
	}
	InAcLockRect_top = GetLongVal(objstring,&pos);
	
	// inactive lock rect right.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE; 
		goto FAILED;
	}
	InAcLockRect_right = GetLongVal(objstring,&pos);
	
	// in active lock rect bottom.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE;
		goto FAILED;
	}
	InAcLockRect_bottom = GetLongVal(objstring,&pos);
	
	
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE; 
		goto FAILED;
	}
	nID = GetLongVal(objstring,&pos);
	
	
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=1)  {
		nReturn = FALSE; 
		goto FAILED;
	}
	nFlipPageIndex = GetStringVal(objstring,index._Length,&pos,0);
	//	assert(nFlipPageIndex);
	
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE; 
		goto FAILED;
	}
	xReturn = GetLongVal(objstring,&pos);
	
	// groupid.	
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=1)  {
		nReturn = FALSE;
		goto FAILED;
	}
	groupid = GetStringVal(objstring,index._Length,&pos,0);
	//	assert(groupid);
	
	// BOOL Comm_Type;	
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE; 
		goto FAILED;
	}
	Comm_Type = GetLongVal(objstring,&pos);
	
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  {
		nReturn = FALSE;
		goto FAILED;
	}
	feedback_type = GetLongVal(objstring,&pos);
	
	// delay
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0)  { 
		nReturn = FALSE;
		goto FAILED;
	}
	m_ndelay = GetLongVal(objstring,&pos);
	
	// 	STRING sys_cmd_string;	
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=1)  { 
		nReturn = FALSE;
		goto FAILED;
	}
	sys_cmd_string = GetStringVal(objstring,index._Length,&pos,&len);
	sys_cmd_string_len  = len;
	//	assert(sys_cmd_string);
	
	//	STRING usr_cmd_string;
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=1)  {		
		nReturn = FALSE;
		goto FAILED;
	}
	usr_cmd_string = GetStringVal(objstring,index._Length,&pos,&len);
	usr_cmd_string_len = len;
	//	assert(usr_cmd_string);
	
	
	//	STRING sys_rev_string;
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=1)  { 
		nReturn = FALSE; 
		goto FAILED;
	}
	sys_rev_string = GetStringVal(objstring,index._Length,&pos,&len);
	sys_rev_string_len = len;
	//	assert(sys_rev_string);
	
	//	STRING usr_rev_string;
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=1) 
	{
		nReturn = FALSE;
		goto FAILED;
	}
	usr_rev_string = GetStringVal(objstring,index._Length,&pos,&len);
	usr_rev_string_len = len;
	//	assert(usr_rev_string);
	
	
	// 	page no.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type!=0) 
	{ 
		nReturn = FALSE;
		goto FAILED;
	}
	page_no = GetLongVal(objstring,&pos);
	
	// ridus.
	index= GetIndexInformation(objstring,&pos);
	if(index._Type==0) 
	{ 
		nRisus = GetLongVal(objstring,&pos);
	}
	
	
	// ActiveframeStyle.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type==0) 
	{ 
		nActiveFrameSytle = GetLongVal(objstring,&pos);
	}
	
	
	// ActiveFrameContrans.
	index = GetIndexInformation(objstring,&pos);
	if(index._Type==0) 
	{ 
		nActiveFrameContrans = GetLongVal(objstring,&pos);
	}
	
	
	
	index = GetIndexInformation(objstring,&pos);
	if(index._Type==0) 
	{ 
		nInActiveFrameSytle = GetLongVal(objstring,&pos);
	}
	
	
	// InActiveFrameContrans
	index = GetIndexInformation(objstring,&pos);
	if(index._Type==0) 
	{ 
		nInActiveFrameContrans = GetLongVal(objstring,&pos);
	}	
	
	// more style.
	
	index = GetIndexInformation(objstring,&pos);
	if(index._Type==0)
	{
		stylemore = GetLongVal(objstring,&pos);
	}
	
	button_pointer = Button_Initialize2(
		Position_left,
		Position_top,
		Position_right,
		Position_bottom,					
		eShape,	
		eBackStyle,	
		AcText_szContent,
		AcText_LOG_FONT,	
		AcText_bFring,		
		AcText_eLocation,
		AcText_dwTextColor,
		InAcText_szContent,
		InAcText_LOG_FONT,	
		InAcText_bFring,		
		InAcText_eLocation,
		InAcText_dwTextColor,
		AcRect_dwFaceColor,
		AcRect_dwFrameColor,
		AcRect_eFrameThick,
		AcRect_eFaceStyle,
		AcRect_TopLeft_x,
		AcRect_TopLeft_y,
		AcRect_BottomRight_x,
		AcRect_BottomRight_y,
		InAcRect_dwFaceColor,
		InAcRect_dwFrameColor,
		InAcRect_eFrameThick,
		InAcRect_eFaceStyle,
		InAcRect_TopLeft_x,
		InAcRect_TopLeft_y,
		InAcRect_BottomRight_x,
		InAcRect_BottomRight_y,
		AcImage_ImageName,
		AcImage_dwForeColor,					
		AcImage_dwBackColor,
		AcImage_bStatus,				
		AcImage_dwTransparenceColor,
		InAcImage_ImageName,
		InAcImage_dwForeColor,					
		InAcImage_dwBackColor,
		InAcImage_bStatus,				
		InAcImage_dwTransparenceColor,
		AcLockRect_left,
		AcLockRect_top,
		AcLockRect_right,
		AcLockRect_bottom,
		InAcLockRect_left,
		InAcLockRect_top,
		InAcLockRect_right,
		InAcLockRect_bottom,
		nID,			
		nFlipPageIndex ,
		xReturn,
		groupid,
		Comm_Type,		
		feedback_type,  
		m_ndelay,
		sys_cmd_string,	
		usr_cmd_string, 
		sys_rev_string,	
		usr_rev_string,	
		sys_cmd_string_len,	
		usr_cmd_string_len, 
		sys_rev_string_len,	
		usr_rev_string_len,	
		
		nRisus ,
		nActiveFrameSytle ,
		nActiveFrameContrans ,
		nInActiveFrameSytle ,
		nInActiveFrameContrans ,
		stylemore,
		g_page
		);
	if(level == 0  && page_pointer && button_pointer) //  page
		page_add_button(page_pointer,button_pointer,page_no,type);
	else if(level == 1 && subpage_pointer && button_pointer) // subpage
	{
		page_add_button(subpage_pointer,button_pointer,page_no,type);
		page_p_add_button(page_pointer,button_pointer,page_no,type);
	}
	
FAILED:
	
	if(AcText_szContent)
		free (AcText_szContent);
	if(AcText_LOG_FONT)
		free (AcText_LOG_FONT);
	if(InAcText_szContent)
		free (InAcText_szContent);
	if(InAcText_LOG_FONT)
		free (InAcText_LOG_FONT);
	if(AcImage_ImageName)
		free (AcImage_ImageName);
	if(InAcImage_ImageName)

⌨️ 快捷键说明

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