I have an application window that closes the screen, and there are several small tool windows that are hidden by default, and their Owner properties are set to this main window.
When I show the tool window and click one of its buttons, it hides to display another window. When I hide this other tool window, Windows switches the application in the same way as pressing the alt + tab button. The only way to prevent this is to click on the main application window before closing (hiding) the tool window.
Why is the application transitioning and how to prevent it? Well, I can explicitly specify these windows to open the main window on the screen (I have not tried this yet, but I do not like to do this). This only happens when the Owner property is set on these windows to prevent them from showing outside the main window.
ps: This full-screen application is a game, and these windows are menus, settings, etc ...
source
share