none
SetWindowPos #HWND_TOPMOST #HWND_TOP and Windows10 start button menus. RRS feed

  • Question

  • Hi

    My app displays using a non active window that always needs to be TOPMOST.

    Using SetWindowPos with  #HWND_TOPMOST and #HWND_TOP my app window remains on top most of the time.

    But menus displayed when I right mouse click or left mouse click on the taskbar Start button display on top of my app. 

    Cortana search results also display on top of my app's window.

    Is there a way to keep my app window on top of these menus and Cortana?

      
    Wednesday, May 29, 2019 11:08 AM

All replies

  • Hi

    My app displays using a non active window that always needs to be TOPMOST.

    Using SetWindowPos with  #HWND_TOPMOST and #HWND_TOP my app window remains on top most of the time.

    But menus displayed when I right mouse click or left mouse click on the taskbar Start button display on top of my app. 

    Cortana search results also display on top of my app's window.

    Is there a way to keep my app window on top of these menus and Cortana?

      

    Why would you want to interfere with a user's ability to access those menus?

    What if every application wanted to be TOPMOST, above all others?

    • Edited by RLWA32 Wednesday, May 29, 2019 7:22 PM
    Wednesday, May 29, 2019 6:21 PM
  • My app would not interfere with a user's ability to access the menus even when displayed on top of them.

    I would argue that these menus are interfering with my app which is designed to show visually impaired users like myself where the mouse pointer is.

    Is it possible for an app window to display on top of these menus?

     

    Wednesday, May 29, 2019 7:37 PM
  • Is it possible for an app window to display on top of these menus?

    OSK does it on Windows 10, apparently with WH_HOOK and SetWinEventHook

    I tested with SetWinEventHook and it worked for Taskbar menu (right-click), but not for Cortana (but it is certainly possible...)

    • Edited by Castorix31 Wednesday, May 29, 2019 7:52 PM
    Wednesday, May 29, 2019 7:47 PM