Hope your doing well . Thanks for reaching out
This is a known issue affecting some applications on Windows 11 24H2, especially those built with MFC and running in maximized mode
.1. Check for KB5060829 Update
- This update has been linked to Alt+Tab issues. Try uninstalling it temporarily to see if the problem resolves
- Avoid Maximized Window State
- Run the app in normal (non-maximized) mode to reduce thumbnail duplication.
- You can test this by launching the app with
SW_SHOWNORMAL instead of SW_MAXIMIZE.
3 . Force Single Thumbnail via Window Styles
- Ensure your main window has WS_EX_APPWINDOW and WS_EX_TOOLWINDOW styles set correctly.
- Improper use of these styles can cause multiple taskbar or Alt+Tab entries.
- Use SetWindowLong with GWL_EXSTYLE
LONG exStyle = GetWindowLong(hWnd, GWL_EXSTYLE); SetWindowLong(hWnd, GWL_EXSTYLE, exStyle | WS_EX_APPWINDOW);
This forces Windows to treat the window as a standalone app, reducing ghost entries.
- Try ExplorerPatcher or Third-Party Tools
- Some developers have used ExplorerPatcher to restore classic Alt+Tab behavior, though results vary 6. Report to Microsoft
- Since this affects many users, consider submitting a bug report via Microsoft Q&A or the Feedback Hub.