新手上路
- 积分
- 39
- 金钱
- 39
- 注册时间
- 2013-11-30
- 在线时间
- 2 小时
|
5金钱
现将源码贴出来 希望大神解决
while(1) {
if((TouchCmd == 1)&& Menu_ID == CallMenu_ID)
{
TouchCmd = 0;
Key = GUI_GetKey();
switch (Key) {
case GUI_ID_OK: //????????????
EDIT_GetText(hEdit, TelNum, sizeof(TelNum)); //????±à??????×?·??®
for(i = 0;i < 8;i++){
WM_Move(OtherMenu_pHead,-40,0); //?????±?°????
}
OSTaskCreate(Task_Calling, (void * )0, (OS_STK *)&TASK_Calling_STK[Calling_STK_SIZE-1], Calling_TASK_Prio);
break;
case GUI_ID_Del:
EDIT_AddKey(hEdit , GUI_KEY_BACKSPACE); //????????×?·? ????????
break;
case GUI_ID_CLOSE: //????????????
BUTTON_SetDefaultFont(&GUI_FontHZ_MicrosoftFont_13);
/* Cleanup */
for (i=0; i < 13; i++) {
BUTTON_Delete(ahButton);
}
BUTTON_Delete(hButtonCALL);
BUTTON_Delete(hButtonDel);
BUTTON_Delete(hButtonBack);
EDIT_Delete(hEdit);
Go_MainMenu(); //?????÷????
OSTaskDel(OS_PRIO_SELF); //????×???
break;
default:
EDIT_AddKey(hEdit, Key);
break;
}
}
OSTimeDly(3); //±??¤50Hz??????????
}
|
|