Using drawing API without WM

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Using drawing API without WM

    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