While most of the time the program uses windows and WM, I need to stop WM an use direct graphic API.
I thought the way to do it is to delete the main window, do whatever and then recreate the window, for example:
WM_DeleteWindow (mainWin);
GUI_Clear();
GUI_SetColor(GUI_YELLOW);
GUI_DispStringAt("Text On Screen" ,200,200);
osDelay(500);
mainWin = M_CreateWindow();
It works fine with PC simulation, but with target system it does not work, and the screen remains displaying the deleted window.
What am I doing wrong (whats the correct way to do this?)
Thanks
Johanan
I thought the way to do it is to delete the main window, do whatever and then recreate the window, for example:
WM_DeleteWindow (mainWin);
GUI_Clear();
GUI_SetColor(GUI_YELLOW);
GUI_DispStringAt("Text On Screen" ,200,200);
osDelay(500);
mainWin = M_CreateWindow();
It works fine with PC simulation, but with target system it does not work, and the screen remains displaying the deleted window.
What am I doing wrong (whats the correct way to do this?)
Thanks
Johanan