freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

arm多行文本框設(shè)計(編輯修改稿)

2025-02-12 04:34 本頁面
 

【文章內(nèi)容簡介】 target (uHAL based ARM system) initialisation // OSInit()。 // needed by uC/OSII // OSInitUart()。 initOSFile()。 if USE_MINIGUI==0 initOSMessage()。 initOSList()。 initOSDC()。 initOSCtrl()。 LoadFont()。 endif loadsystemParam()。 // create the tasks in uC/OS and assign increasing // // priorities to them so that Task3 at the end of // // the pipeline has the highest priority. // LCD_printf(Create task on uCOSII...\n)。 OSTaskCreate(Main_Task, (void *)0, (OS_STK *)amp。Main_Stack[STACKSIZE1], Main_Task_Prio)。 // OSTaskCreate(test_Task, (void *)0, (OS_STK *)amp。test_Stack[STACKSIZE1], test_Task_Prio)。 OSAddTask_Init(1)。 15 LCD_printf(Starting uCOSII...\n)。 LCD_printf(Entering graph mode...\n)。 LCD_ChangeMode(DspGraMode)。 OSStart()。 // start the OS // // never reached // return 0。 }//main ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// PTextCtrl pTextCtrl[2]。//文本框結(jié)構(gòu)控件指針 ,兩個文本框 structRECT rect[2]。//定義矩形框結(jié)構(gòu) int ID_MainTextCtrl[2]={101,102}。//文本框控件 ID int leftText=100,rightText=320。 //文本框的左右對齊 int topText[2]={30,50},bottomText[2]={50,70}。 //文本 框的上下位置緊挨 //int static instru=0。 //文本框的指示變量 /* int sysnumber=0。 char sysfilename [ ]=/sys/ucos/fj/。//打開的文件名 void LoadSysNumber()//打開文件讀文件數(shù)據(jù) { FILE *pfile。//定義文件結(jié)構(gòu)指針 pfile=fopen(sysfilename,r)。//打開文件 if(pfile==NULL){//打開文件失敗 sysnumber=0。 return。 } fread(amp。sysnumber,sizeof(int),1,pfile)。//讀文件 fclose(pfile)。//關(guān)閉文件 } void SaveSysNumber() //打開文件寫數(shù)據(jù)保存 { FILE *pfile。 pfile=fopen(sysfilename,w)。 if(pfile==NULL){ return。 } fwrite(amp。sysnumber,sizeof(int),1, pfile)。//寫文件 fclose(pfile)。 } 16 */ /* void CreateText()//創(chuàng)建文本框 { U16 str[20]。 //LoadSysNumber()。 SetRect(amp。rect[], leftText,topText[instru],rightText,bottomText[instru])。 //設(shè)置 PID參數(shù)軸 1P的文本框 pTextCtrl[instru]=CreateTextCtrl(ID_MainTextCtrl[instru], amp。rect[instru],FONTSIZE_MIDDLE, CTRL_STYLE_FRAME, NULL, NULL)。//創(chuàng)建文本框 //Int2Unicode(sysnumber,str)。//將整形數(shù)據(jù)轉(zhuǎn)換為 Unicode數(shù)據(jù) SetWndCtrlFocus(NULL, ID_MainTextCtrl[instru])。//將焦點移到文本框中 SetTextCtrlText(0, str,TRUE)。//設(shè)置文本框內(nèi)容 } */ ////////////////變量定義 ////////////////////////////////////////////////////// S8 a[10],b[10],c[1]。 S8 at[10],bt[10]。 S8 dota,dotb。 //num1和 num2的小數(shù)點標記位 int count1,count2,i,j, m,n,k。 float num,num1,num2,num3。 int numtemp。 //當相減得到的是負數(shù)時的臨時量 //////////////////////////////////////////////////////////////////////// int fint。 //把 fnum得到的值乘以 100得到的整數(shù) float fnum。 //用在做除法運算時保存所得的商值 //float fnum2。 //把 fint除以 100得到的浮點數(shù),也就是要輸出到第二個文本框里面的值 ////////////////////////////////////////////////////////////////////////// void Main_Task(void *Id) //Main_Test_Task { U16 str1[10]={39。\039。}。 U16 str2[10]={39。\039。}。 int l=0。 int p=0。 int t=0。 int f=0。 //小數(shù)點后面數(shù)標志 int ffloat[4]={10,100,1000,10000}。 //最多四位有效小數(shù) POSMSG pMsg=0。//定義消息結(jié)構(gòu) a[0]=39。\039。 b[0]=39。\039。 c[0]=39。\039。 num=num1=num2=num3=0。 i=0。 j=0。 count1=count2=0。 17 ClearScreen()。//清屏 Uart_Printf(0,多行文本框計算器實驗 \n)。 //CreateText()。 //創(chuàng)建文本框 ///////////////////////////創(chuàng)建兩個文本框 /////////////////////// //////創(chuàng)建第一個文本框 //////////////// SetRect(amp。rect[0], leftText,topText[0],rightText,bottomText[0])。 //設(shè)置 PID參數(shù)軸 1P的文本框 pTextCtrl[0]=CreateTextCtrl(ID_MainTextCtrl[0], amp。rect[0],FONTSIZE_MIDDLE, CTRL_STYLE_FRAME, NULL, NULL)。//創(chuàng)建文本框 //Int2Unicode(sysnumber,str)。//將整形數(shù)據(jù)轉(zhuǎn)換為 Unicode數(shù)據(jù) SetWndCtrlFocus(NULL, ID_MainTextCtrl[0])。//將焦點移到第一個文本框中 //SetTextCtrlText(pTextCtrl[0], str,TRUE)。//設(shè)置文本框內(nèi)容 ///////創(chuàng)建第二個文本框 ////////////// SetRect(amp。rect[1], leftText,topText[1],rightText,bottomText[1])。 //設(shè)置 PID參數(shù)軸 1P的文本框 pTextCtrl[1]=CreateTextCtrl(ID_MainTextCtrl[1], amp。rect[1],FONTSIZE_MIDDLE, CTRL_STYLE_FRAME, NULL, NULL)。//創(chuàng)建文本框 //Int2Unicode(sysnumber,str)。//將整形數(shù)據(jù)轉(zhuǎn)換為 Unicode數(shù)據(jù) //SetWndCtrlFocus(NULL, ID_MainTextCtrl[1])。//第二個文本框不需要得到焦點 //SetTextCtrlText(pTextCtrl[1], str,TRUE)。//設(shè)置文本框內(nèi)容 //////////////////////////////////////////////////////////////// pTextCtrl[0]text[0]=0。 //清空第一個文本框 SetTextCtrlEdit(pTextCtrl[0], TRUE)。//使第一個文本框處于編輯狀態(tài) DrawTextCtrl(pTextCtrl[0])。//重繪文本框 ///////////////////////////////////////////////////// pTextCtrl[1]text[0]=0。 //清空第一個文本框 SetTextCtrlEdit(pTextCtrl[1], TRUE)。//使 第一個文本框處于編輯狀態(tài) SetTextCtrlText(pTextCtrl[1], str2,TRUE)。//設(shè)置文本框內(nèi)容 DrawTextCtrl(pTextCtrl[1])。//重繪文本框 //消息循環(huán) for(。){ POS_Ctrl pCtrl。//定義消息結(jié)構(gòu) pMsg=WaitMessage(0)。//等待消息 switch(pMsgMessage){ case if(pMsgWParam==39。+39。) c[0]=39。+39。 else if(pMsgWParam==39。39。) c[0]=39。39。 else if(pMsgWParam==39。*39。) c[0]=39。*39。 else if(pMsgWParam==39。/39。) c[0]=39。/39。 else if((c[0]==39。\039。)amp。amp。((pMsgWParam=39。039。amp。amp。pMsgWParam=39。939。)||pMsgWParam==39。N39。)) { a[i]=pMsgWParam。 if(pMsgWParam==48)dota=i。 //dota標志著小數(shù)點在第一個數(shù)里面的位置 ++i。 18
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1