]> git.saurik.com Git - wxWidgets.git/commitdiff
Ensure that wxSplashScreen doesn't appear on taskbar nor in Alt-TAB list.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 22 Nov 2011 13:18:53 +0000 (13:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 22 Nov 2011 13:18:53 +0000 (13:18 +0000)
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

index da0795d71d0c1f01226da4640a38472d5f1afca2..24dc3c57b29731ee91fe12b75049b867e757ffac 100644 (file)
@@ -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