Delete Window not working

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

  • Delete Window not working

    Hi,

    I have a issue which i am facing when using WM_DeleteWindow function. I have an application in which initially on boot up main screen is displayed where i have icons. On each icon click new window is opened where i have widgets

    I have 3 windows

    Background window on boot up
    Another window on top of background window
    the window showing the "sensor not connected" message on top of 2nd window

    I have a independent function which checks periodically for any sensor connected if not then opens a new window which says "Sensor not connected" message. this new window is not modal. This new window has a OK button on click i call GUI_EndDialog. This works fine when user presses OK button and window is closed
    I want this window to be deleted when user connects the sensor again. I have called WM_DeleteWindow function but it does not delete the window and the window stays on the screen. I checked WM_Delete message for the window which i receive every time the WM_DeleteWindow is called but the window remains on the screen. What could be the problem

    Thanks in advance

    Anuj