How to get the keep track of windows/dialogs shown in UI from an external thread?

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

  • How to get the keep track of windows/dialogs shown in UI from an external thread?

    Hi all,

    We have a problem in which we need to keep track of the emWin UIs actively displayed in screen from an external thread.
    All the handles of widgets/child windows created inside a window are available only inside corresponding window.c file (eg:- static declarations).

    Only available input to this UI tracking thread is index of each virtual windows (There would be a mapping between each windows and index returned by GUI_GetOrg()) and information regarding each widget in a window and their corresponding co-ordinate location. eg:- This would be a static information created using a subset of GUI_WIDGET_CREATE_INFO structure in each window.

    1. We understood that on every screen switch, we can use GUI_GetOrg() and understand the current virtual window index.

    2. In a similar manner, we would like to identify the current child window/modal which is active over the virtual window? Can we use any APIs for that?

    3. How we would retrieve the currently selected window? Any APIs for that?

    Looking forward to hear from you.

    Thank you,
    Lullaby Dayal