Dialog on top of dialog

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

    • Dialog on top of dialog

      I have an application that has a full screen window that launches a full screen dialog, when another dialog is launched it is not drawn on top of the first dialog, have to close first dialog to see it. I want it on top, what to do ??. Tried setting WM_CF_STAYONTOP and WM_CF_FGND flags but still drawn behind first dialog. Only way i have been able to get it draw above first dialog is to set parent handle to first dialog, but I don't want that, as 2nd dialog will close when 1st dialog is closed.
    • evanb3 wrote:

      Found solution, call WM_SetStayOnTop() after GUI_CreateDialogBox()
      Instead WM_SetStayOnTop() you can use the function WM_BringToTop() for each window or dialog which should be moved on top.
      But in some cases WM_SetStayOnTop() is very usable - it leaves window always on top even if it loses focus.
      Best regards,
      Volodymyr.