From 7650eed4090a415394aae2ecbffaf09eae997086 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 22 Nov 2011 13:18:53 +0000 Subject: [PATCH] Ensure that wxSplashScreen doesn't appear on taskbar nor in Alt-TAB list. Having the splash screen in Alt-TAB window list under MSW was useless and ugly (as it didn't even have the proper application icon) so use the appropriate styles to avoid this. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/splash.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generic/splash.cpp b/src/generic/splash.cpp index da0795d71d..24dc3c57b2 100644 --- a/src/generic/splash.cpp +++ b/src/generic/splash.cpp @@ -50,7 +50,8 @@ END_EVENT_TABLE() wxSplashScreen::wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds, wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style) - : wxFrame(parent, id, wxEmptyString, wxPoint(0,0), wxSize(100, 100), style) + : wxFrame(parent, id, wxEmptyString, wxPoint(0,0), wxSize(100, 100), + style | wxFRAME_TOOL_WINDOW | wxFRAME_NO_TASKBAR) { // splash screen must not be used as parent by the other windows because it // is going to disappear soon, indicate it by giving it this special style -- 2.45.2