Available window

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

  • Available window

    Hi,

    For example if I created window:
    hWin = WM_CreateWindow();
    and then delete it:
    WM_DeleteWindow(hwin);

    And then do something...
    What is the right way help define that window hWin available or not now?


    There is away clear or delete all windows on the screen if I don't know their handler(situation when need switching between screens)?

    The post was edited 1 time, last by krufter ().

  • Hi,

    Unfortunately there is no function which deletes all windows.

    But you can receive the different window handles with functions like WM_GetDesktopWindow(), WM_GetDialogItem(), WM_GetNextSibling() or WM_GetFirstChild().

    Just have a look at the WM API table in the emWin user manual (UM03001_emWin5.pdf).

    Regards,
    Sven
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.