[mw_shl_code=c,true] int NCode, Id;
WM_HWIN hWin = pMsg->hWin;
switch (pMsg->MsgId)
{
case WM_TIMER:
//Music_timer(pMsg);
TEXT_SetText(WM_GetDialogItem(hWin, TEXT_NOW),"123");
WM_RestartTimer(pMsg->Data.v,1000);
break;
这里是定义一个定时器
win1=GUI_CreateDialogBox(Music_aDialogCreate, GUI_COUNTOF(Music_aDialogCreate), &Music_cbCallback, 0, 0, 0);
time=WM_CreateTimer(win1,0,1000,0);
// GUI_ExecCreatedDialog(win1);
// //WM_IsVisible(win1);
// WM_Paint(win1);
//win2=GUI_CreateDialogBox(Music_bkaDialogCreate, GUI_COUNTOF(Music_bkaDialogCreate), &Music_bkcbCallback, 1, 0, 0);
// GUI_Exec();
//GUI_ExecDialogBox(Music_aDialogCreate, GUI_COUNTOF(Music_aDialogCreate), &Music_cbCallback, 0, 0, 0);
while(1)
{
GUI_Exec();
GUI_Delay(500);
// GUI_ExecDialogBox(Music_aDialogCreate, GUI_COUNTOF(Music_aDialogCreate), &Music_cbCallback, 0, 0, 0);
}
[/mw_shl_code]
[mw_shl_code=c,true]
[/mw_shl_code]
|