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

📄 settimearea.c.bak

📁 这是嵌入式软件记事本的小软件
💻 BAK
📖 第 1 页 / 共 3 页
字号:
		SetTextCtrlText(pTimeTextCtrl, strtime,TRUE);
		SetTimeStatus=STStatus_SetSelect;
		break;
	case STStatus_SetSelect:
		DestorySetTimeArea();
		mainstatus=MAIN_MENU;
		SetTextCtrlText(pStatusTextCtrl, MainTip[0],TRUE);
		SetWndCtrlFocus(NULL, ID_MainListBox);
		break;

	}
}

void CheckTimeCancel()
{
	U16 strtime[11];
	
	switch(CheckTimeStatus){
	
	case STStatus_SetYear:
		SetTextCtrlEdit(pYearTextCtrl, FALSE);
		CheckTimeStatus=STStatus_SetSelect;
		break;
	case STStatus_SetMonth:		
	    SetTextCtrlEdit(pMonthTextCtrl, FALSE);
        CheckTimeStatus=STStatus_SetSelect;
		break;
	case STStatus_SetDay:
		SetTextCtrlEdit(pDayTextCtrl, FALSE);
	    CheckTimeStatus=STStatus_SetSelect;
		break;
	case STStatus_SetSelect:
		DestoryCheckTimeArea();
		mainstatus=MAIN_MENU;
		SetTextCtrlText(pStatusTextCtrl, MainTip[1],TRUE);
		SetWndCtrlFocus(NULL, ID_MainListBox);
	    break;
		
	}
}

void TimeZoneCancel()
	{

	U16 strtime[11];
	
	switch(TimeZoneStatus){
	case STStatus_SetSelect:
		DestoryTimeZoneArea();
	    mainstatus=MAIN_MENU;
    	SetTextCtrlText(pStatusTextCtrl, MainTip[0],TRUE);
		SetWndCtrlFocus(NULL, ID_MainListBox);
		break;
    case STStatus_Setok:
	    SetTextCtrlEdit(pTimeZoneTextCtrl100, FALSE);
		TimeZoneStatus=STStatus_SetSelect;
		break;
	}
}





#define ID_TimeZone_TextCtrl1 22
PTextCtrl pTimeZoneTextCtrl3,pTimeZoneTextCtrl4;
PTextCtrl pTimeZoneTextCtrl5,pTimeZoneTextCtrl6;
PTextCtrl pTimeZoneTextCtrl7,pTimeZoneTextCtrl8;
PTextCtrl pTimeZoneTextCtrl9,pTimeZoneTextCtrl10;
PTextCtrl pTimeZoneTextCtrl11,pTimeZoneTextCtrl12;
PTextCtrl pTimeZoneTextCtrl13,pTimeZoneTextCtrl14;
PTextCtrl pTimeZoneTextCtrl15,pTimeZoneTextCtrl16;
PTextCtrl pTimeZoneTextCtrl17,pTimeZoneTextCtrl18;
PTextCtrl pTimeZoneTextCtrl19,pTimeZoneTextCtrl20;
PTextCtrl pTimeZoneTextCtrl21,pTimeZoneTextCtrl22;
PTextCtrl pTimeZoneTextCtrl23,pTimeZoneTextCtrl24;
PTextCtrl pTimeZoneTextCtrl25,pTimeZoneTextCtrl26;
PTextCtrl pTimeZoneTextCtrl27,pTimeZoneTextCtrl28;
PTextCtrl pTimeZoneTextCtrl29,pTimeZoneTextCtrl30;
PTextCtrl pTimeZoneTextCtrl31,pTimeZoneTextCtrl32;
PTextCtrl pTimeZoneTextCtrl33,pTimeZoneTextCtrl34;
PTextCtrl pTimeZoneTextCtrl35,pTimeZoneTextCtrl36;
PTextCtrl pTimeZoneTextCtrl37,pTimeZoneTextCtrl38;
PTextCtrl pTimeZoneTextCtrl39,pTimeZoneTextCtrl40;
PTextCtrl pTimeZoneTextCtrl41,pTimeZoneTextCtrl42;
PTextCtrl pTimeZoneTextCtrl43,pTimeZoneTextCtrl44;
PTextCtrl pTimeZoneTextCtrl45,pTimeZoneTextCtrl46;
PTextCtrl pTimeZoneTextCtrl47,pTimeZoneTextCtrl48;
PTextCtrl pTimeZoneTextCtrl49,pTimeZoneTextCtrl50;
PTextCtrl pTimeZoneTextCtrl51;


U16 G[]={0x661f,0x671f,0x00};//week
U16 H[]={0x5e74,0x00};//year
U16 I[]={0x6708,0x00};//month
U16 J[]={0x65e5,0x00};//day
U16 K[]={0x5929,0x5e72,0x5730,0x652f,0x00};//kanchih



void TimeZoneShow()
{
	structRECT rect;
		
    SetRect(&rect, 60,1,97,23);	        //创建星期文本框
	pTimeZoneTextCtrl3=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl3, MainWe7[0],FALSE);
 	SetRect(&rect, 97,1,134,23);	        
	pTimeZoneTextCtrl4=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl4, MainWe1[0],FALSE);
	SetRect(&rect, 134,1,171,23);	        
	pTimeZoneTextCtrl5=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl5, MainWe2[0],FALSE);
	SetRect(&rect, 171,1,208,23);	        
	pTimeZoneTextCtrl6=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl6, MainWe3[0],FALSE);
	SetRect(&rect, 208,1,245,23);	       
	pTimeZoneTextCtrl7=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl7, MainWe4[0],FALSE);
	SetRect(&rect, 245,1,282,23);	        
	pTimeZoneTextCtrl8=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl8, MainWe5[0],FALSE);
	SetRect(&rect, 282,1,318,23);	       
	pTimeZoneTextCtrl9=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl9, MainWe6[0],FALSE);
	SetRect(&rect, 60,23,97,46);	        
	pTimeZoneTextCtrl10=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	
	SetRect(&rect, 97,23,134,46);	        //创建日期文本框
	pTimeZoneTextCtrl11=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	
	SetRect(&rect, 134,23,171,46);	        
	pTimeZoneTextCtrl12=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl12, MainWe[0],FALSE);
	SetRect(&rect, 171,23,208,46);	        
	pTimeZoneTextCtrl13=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl13, MainWe[1],FALSE);
	SetRect(&rect, 208,23,245,46);	      
	pTimeZoneTextCtrl14=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl14, MainWe[2],FALSE);
	SetRect(&rect, 245,23,282,46);	       
	pTimeZoneTextCtrl15=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl15, MainWe[3],FALSE);
	SetRect(&rect, 282,23,318,46);	        
	pTimeZoneTextCtrl16=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);	
	SetTextCtrlText(pTimeZoneTextCtrl16, MainWe[4],FALSE);
	SetRect(&rect, 60,46,97,69);	       
	pTimeZoneTextCtrl17=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl17, MainWe[5],FALSE);
	SetRect(&rect, 97,46,134,69);	       
	pTimeZoneTextCtrl18=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl18, MainWe[6],FALSE);
	SetRect(&rect, 134,46,171,69);	    
	pTimeZoneTextCtrl19=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl19, MainWe[7],FALSE);
	SetRect(&rect, 171,46,208,69);	       
	pTimeZoneTextCtrl20=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl20, MainWe[8],FALSE);
	SetRect(&rect, 208,46,245,69);	      
	pTimeZoneTextCtrl21=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl21, MainWe[9],FALSE);
	SetRect(&rect, 245,46,282,69);	   
	pTimeZoneTextCtrl22=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl22, MainWe[10],FALSE);
	SetRect(&rect, 282,46,318,69);	        
	pTimeZoneTextCtrl23=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);	
    SetTextCtrlText(pTimeZoneTextCtrl23, MainWe[11],FALSE);
	SetRect(&rect, 60,69,97,92);	      
	pTimeZoneTextCtrl24=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl24, MainWe[12],FALSE);
	SetRect(&rect, 97,69,134,92);	    
	pTimeZoneTextCtrl25=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl25, MainWe[13],FALSE);
	SetRect(&rect, 134,69,171,92);	      
	pTimeZoneTextCtrl26=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl26, MainWe[14],FALSE);
	SetRect(&rect, 171,69,208,92);	       
	pTimeZoneTextCtrl27=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl27, MainWe[15],FALSE);
	SetRect(&rect, 208,69,245,92);	       
	pTimeZoneTextCtrl28=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl28, MainWe[16],FALSE);
	SetRect(&rect, 245,69,282,92);	        
	pTimeZoneTextCtrl29=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl29, MainWe[17],FALSE);
	SetRect(&rect, 282,69,318,92);	        
	pTimeZoneTextCtrl30=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);	
	SetTextCtrlText(pTimeZoneTextCtrl30, MainWe[18],FALSE);
	SetRect(&rect, 60,92,97,115);	       
	pTimeZoneTextCtrl31=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl31, MainWe[19],FALSE);
	SetRect(&rect, 97,92,134,115);	        
	pTimeZoneTextCtrl32=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl32, MainWe[20],FALSE);
	SetRect(&rect, 134,92,171,115);	       
	pTimeZoneTextCtrl33=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl33, MainWe[21],FALSE);
	SetRect(&rect, 171,92,208,115);	       
	pTimeZoneTextCtrl34=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl34, MainWe[22],FALSE);
	SetRect(&rect, 208,92,245,115);	       
	pTimeZoneTextCtrl35=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl35, MainWe[23],FALSE);
	SetRect(&rect, 245,92,282,115);	        
	pTimeZoneTextCtrl36=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl36, MainWe[24],FALSE);
	SetRect(&rect, 282,92,318,115);	       
	pTimeZoneTextCtrl37=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);	
	SetTextCtrlText(pTimeZoneTextCtrl37, MainWe[25],FALSE);
	SetRect(&rect, 60,115,97,138);	        
	pTimeZoneTextCtrl38=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl38, MainWe[26],FALSE);
	SetRect(&rect, 97,115,134,138);	       
	pTimeZoneTextCtrl39=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl39, MainWe[27],FALSE);
	SetRect(&rect, 134,115,171,138);	        
	pTimeZoneTextCtrl40=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl40, MainWe[28],FALSE);
	SetRect(&rect, 171,115,208,138);	       
	pTimeZoneTextCtrl41=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetTextCtrlText(pTimeZoneTextCtrl41, MainWe[29],FALSE);
	SetRect(&rect, 208,115,245,138);	       
	pTimeZoneTextCtrl42=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	
	SetRect(&rect, 245,115,282,138);	        
	pTimeZoneTextCtrl43=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	
	SetRect(&rect, 282,115,318,138);	        
	pTimeZoneTextCtrl44=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);	
	
	SetRect(&rect, 60,138,97,159);	       
	pTimeZoneTextCtrl45=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	
	SetRect(&rect, 97,138,134,159);	       
	pTimeZoneTextCtrl46=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	
	SetRect(&rect, 134,138,171,159);	      
	pTimeZoneTextCtrl47=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	
	SetRect(&rect, 171,138,208,159);	       
	pTimeZoneTextCtrl48=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	
	SetRect(&rect, 208,138,245,159);	       
	pTimeZoneTextCtrl49=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	
	SetRect(&rect, 245,138,282,159);	      
	pTimeZoneTextCtrl50=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);
	
	SetRect(&rect, 282,138,318,159);	        
	pTimeZoneTextCtrl51=CreateTextCtrl(ID_TimeZone_TextCtrl1, &rect, FONTSIZE_SMALL, CTRL_STYLE_3DUPFRAME,NULL,NULL);	




}   //60 97 134 171 208 245 282 319
	//0  23 46  69  92  115 138 160*/

#define ID_TimeZone_TextCtrl2 23

void TimeYinShow()
{
	structRECT rect;
	SetRect(&rect, 0,0,40,39);	    //2004
	pTimeZoneTextCtrl52=CreateTextCtrl(ID_TimeZone_TextCtrl2, &rect, FONTSIZE_SMALL,CTRL_STYLE_3DUPFRAME,NULL,NULL);
	SetRect(&rect, 40,0,59,39);	    //year
	pTimeZoneTextCtrl53=CreateTextCtrl(ID_TimeZone_TextCtrl2, &rect, FONTSIZE_SMALL,CTRL_STYLE_3DUPFRAME,NULL,NULL);
    SetTextCtrlText(pTimeZoneTextCtrl53, H ,FALSE);
    SetRect(&rect, 0,40,15,79);	    //6
	pTimeZoneTextCtrl54=CreateTextCtrl(ID_TimeZone_TextCtrl2, &rect, FONTSIZE_SMALL,CTRL_STYLE_3DUPFRAME,NULL,NULL); 
	SetRect(&rect, 15,40,30,79);	    //month
	pTimeZoneTextCtrl55=CreateTextCtrl(ID_TimeZone_TextCtrl2, &rect, FONTSIZE_SMALL,CTRL_STYLE_3DUPFRAME,NULL,NULL); 
    SetTextCtrlText(pTimeZoneTextCtrl55, I ,FALSE);
	SetRect(&rect, 30,40,45,79);	    //5
	pTimeZoneTextCtrl56=CreateTextCtrl(ID_TimeZone_TextCtrl2, &rect, FONTSIZE_SMALL,CTRL_STYLE_3DUPFRAME,NULL,NULL); 
	SetRect(&rect, 45,40,59,79);	    //day
	pTimeZoneTextCtrl57=CreateTextCtrl(ID_TimeZone_TextCtrl2, &rect, FONTSIZE_SMALL,CTRL_STYLE_3DUPFRAME,NULL,NULL); 
	SetTextCtrlText(pTimeZoneTextCtrl57, J ,FALSE);
	SetRect(&rect, 0,80,30,119);        //week
	pTimeZoneTextCtrl58=CreateTextCtrl(ID_TimeZone_TextCtrl2, &rect, FONTSIZE_SMALL,CTRL_STYLE_3DUPFRAME,NULL,NULL); 
	SetTextCtrlText(pTimeZoneTextCtrl58, G ,FALSE);
	SetRect(&rect, 30,80,59,119);	    //2
	pTimeZoneTextCtrl59=CreateTextCtrl(ID_TimeZone_TextCtrl2, &rect, FONTSIZE_SMALL,CTRL_STYLE_3DUPFRAME,NULL,NULL); 
	SetRect(&rect, 0,120,40,159);        //kanchih
	pTimeZoneTextCtrl60=CreateTextCtrl(ID_TimeZone_TextCtrl2, &rect, FONTSIZE_SMALL,CTRL_STYLE_3DUPFRAME,NULL,NULL); 
	SetTextCtrlText(pTimeZoneTextCtrl60, K ,FALSE);
	SetRect(&rect, 40,120,50,159);	    //0
	pTimeZoneTextCtrl61=CreateTextCtrl(ID_TimeZone_TextCtrl2, &rect, FONTSIZE_SMALL,CTRL_STYLE_3DUPFRAME,NULL,NULL); 
	SetRect(&rect, 50,120,60,159);        //0
	pTimeZoneTextCtrl62=CreateTextCtrl(ID_TimeZone_TextCtrl2, &rect, FONTSIZE_SMALL,CTRL_STYLE_3DUPFRAME,NULL,NULL); 

	 
}




void Beijing(U8 IsShow)
{
	static char TimeKeyTable[]={'1','2','3',0,'4','5','6',0,'7','8','9',0,':','0','\b',0};
	U16 strdate[11]={0,};
	U16 strtime[11]={0,};	
	
	structRECT rect;

	SetRect(&rect, 90,200,185,220);	//创建时区日期显示文本框
	pTimeZoneTextCtrl1=CreateTextCtrl(ID_TimeZone_TextCtrl, &rect, FONTSIZE_SMALL, CTRL_STYLE_FRAME,NULL,NULL);
	SetRect(&rect, 185,200,275,220);	//创建时区时间显示文本框
	pTimeZoneTextCtrl2=CreateTextCtrl(ID_TimeZone_TextCtrl, &rect, FONTSIZE_SMALL, CTRL_STYLE_FRAME,NULL,NULL);
	Rtc_Format("20%Y.%M.%D",strdate);
	Rtc_Format("%H:%I:%S",strtime);
	SetTextCtrlText(pTimeZoneTextCtrl1, strdate,IsShow);
	SetTextCtrlText(pTimeZoneTextCtrl2, strtime,IsShow);

}
void DestoryBeijing()
{
    PDC pdc;
	pdc=CreateDC();
	DestoryTextCtrl(pTimeZoneTextCtrl1);
    DestoryTextCtrl(pTimeZoneTextCtrl2);

	FillRect(pdc, 90, 200, 275, 220, GRAPH_MODE_NORMAL, COLOR_WHITE);
	ReDrawOSCtrl();
    
	DestoryDC(pdc);

       
}


void Zhongtudao(U8 IsShow)
{   	     
	U16 strdate[11]={0,};
	U16 strtime[11]={0,};
	structRECT rect;
	U16 ptext=pTimeZoneTextCtrl2->text[0];
	U16 tmp[1];
    int ptext1;
	SetTextCtrlText(pTimeZoneTextCtrl1, strdate,FALSE);
    SetTextCtrlText(pTimeZoneTextCtrl2, strtime,FALSE);
	ptext1=Unicode2Int(ptext);
	ptext1=ptext1+1;
	Int2Unicode(ptext1,tmp);	
	
	SetRect(&rect, 185,200,214,220);	//创建时区时间显示文本框
	pTimeZoneTextCtrl102=CreateTextCtrl(ID_TimeZone_TextCtrl3, &rect, FONTSIZE_SMALL, CTRL_STYLE_FRAME,NULL,NULL);
    SetTextCtrlText(pTimeZoneTextCtrl102, tmp ,FALSE);
   	SetRect(&rect, 90,200,185,220);	//创建时区日期显示文本框
	pTimeZoneTextCtrl103=CreateTextCtrl(ID_TimeZone_TextCtrl3, &rect, FONTSIZE_SMALL, CTRL_STYLE_FRAME,NULL,NULL);
	SetRect(&rect, 215,200,275,220);	//创建时区时间显示文本框
	pTimeZoneTextCtrl104=CreateTextCtrl(ID_TimeZone_TextCtrl3, &rect, FONTSIZE_SMALL, CTRL_STYLE_FRAME,NULL,NULL);
	     
	Rtc_Format("%Y.%M.%D",strdate);
	Rtc_Format("%I:%S",strtime);
	SetTextCtrlText(pTimeZoneTextCtrl103, strdate,TRUE);
	SetTextCtrlText(pTimeZoneTextCtrl104, strtime,TRUE);

}

void DestoryZhongtudao()
{
    PDC pdc;
	pdc=CreateDC();
	DestoryTextCtrl(pTimeZoneTextCtrl102);
	DestoryTextCtrl(pTimeZoneTextCtrl103);
    DestoryTextCtrl(pTimeZoneTextCtrl104);
	FillRect(pdc, 90, 200, 275, 220, GRAPH_MODE_NORMAL, COLOR_WHITE);
	ReDrawOSCtrl();
    DestoryDC(pdc);
}


⌨️ 快捷键说明

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