/********************************************************************* * * Task_0 */ void Task_0(void) { WM_HWIN hWin = 0; _Auto = 1; GUI_SelectLayer(LAYER); WM_SetCreateFlags(WM_CF_MEMDEV); /* Use memory devices on all windows to avoid flicker */ WM_EnableMemdev(WM_HBKWIN); WM_SetCallback(WM_HBKWIN, _cbBkWindow); GUI_Exec(); GUI_CURSOR_ShowEx(LAYER); hWin = GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), &_cbCallback, 0, 0, 0); while (1) { if (_Auto) { _PlayNextEvent(hWin); } else { SIM_Delay(100); } if (WM_IsWindow(hWin) == 0) { SIM_Delay(1000); hWin = GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), &_cbCallback, WM_GetDesktopWindowEx(LAYER), 0, 0); } } }
void GUI_X_Delay(int Period) { SIM_Delay(Period); }