alt-tab

Best practices for Alt-Tab support in a DirectX app?

余生颓废 提交于 2019-12-02 15:30:35
When writing DirectX applications, obviously it's desirable to support the user suspending the application via Alt - Tab in a way that's fast and error-free . What is the best set of practices for ensuring this? Things that need to be addressed include: The best methods of detecting when your application has been alt-tabbed out of and when it has been returned to. What DirectX resources are lost when the user alt-tabs, and the best ways to cope with this. Major things to do and things to avoid in application architecture for purposes of alt-tab support. Any significant differences between

Switch to last active application like Alt-Tab

半世苍凉 提交于 2019-12-01 07:15:25
ok, I have found many posts on finding a window by name, etc. What I have not found is how to find and switch the window application focus to last active window. The code I am showing below will give me the list of active applications in the task manager that are active. What I can not figure out how to do is figure out what application was the last active application, and then switch to it. for example... I have my custom winform application open. I click a button My application switches to the last active window / application. Here is the working code I have so far. (this is the action on a

Best way to hide a window from the Alt-Tab program switcher?

感情迁移 提交于 2019-11-26 06:49:16
I've been a .NET developer for several years now and this is still one of those things I don't know how to do properly. It's easy to hide a window from the taskbar via a property in both Windows Forms and WPF, but as far as I can tell, this doesn't guarantee (or necessarily even affect) it being hidden from the Alt + ↹Tab dialog. I've seen invisible windows show up in Alt + ↹Tab , and I'm just wondering what is the best way to guarantee a window will never appear (visible or not) in the Alt + ↹Tab dialog. Update: Please see my posted solution below. I'm not allowed to mark my own answers as