From e1437298456a5b4904075f20733282e7771816aa Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 26 Apr 2001 20:34:19 +0000 Subject: [PATCH] Fixed Simple Toolbar bug; removed 2 pixel kludge in splash screen git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/manual.tex | 2 +- src/generic/splash.cpp | 6 +++--- src/generic/tbarsmpl.cpp | 3 ++- src/msw/mdi.cpp | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/latex/wx/manual.tex b/docs/latex/wx/manual.tex index 8f94319c62..188a324052 100644 --- a/docs/latex/wx/manual.tex +++ b/docs/latex/wx/manual.tex @@ -31,7 +31,7 @@ }} \winhelpignore{\author{Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al} -\date{May 25th 2001} +\date{April 25th 2001} } \makeindex \begin{document} diff --git a/src/generic/splash.cpp b/src/generic/splash.cpp index 54c8982dc9..1f7932c5a6 100644 --- a/src/generic/splash.cpp +++ b/src/generic/splash.cpp @@ -48,8 +48,9 @@ wxSplashScreen::wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int mil // For some reason, we need to make the client size a couple of pixels // bigger for all of the bitmap to show. + // Or do we? #ifdef __WXMSW__ - int fudge = 2; + int fudge = 0; #else int fudge = 0; #endif @@ -78,8 +79,7 @@ wxSplashScreen::~wxSplashScreen() void wxSplashScreen::OnNotify(wxTimerEvent& event) { - m_timer.Stop(); - this->Destroy(); + Close(TRUE); } void wxSplashScreen::OnCloseWindow(wxCloseEvent& event) diff --git a/src/generic/tbarsmpl.cpp b/src/generic/tbarsmpl.cpp index 33d0dfeb9f..99248be4c5 100644 --- a/src/generic/tbarsmpl.cpp +++ b/src/generic/tbarsmpl.cpp @@ -682,7 +682,8 @@ void wxToolBarSimple::SpringUpButton(int id) if ( tool && tool->CanBeToggled() ) { - tool->Toggle(); + if (tool->IsToggled()) + tool->Toggle(); DrawTool(tool); } diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index 3c235e7f3d..e3196d4817 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -1149,7 +1149,7 @@ bool wxMDIClientWindow::CreateClient(wxMDIParentFrame *parent, long style) ccs.hWindowMenu = (HMENU) parent->GetWindowMenu()->GetHMenu(); ccs.idFirstChild = wxFIRST_MDI_CHILD; - DWORD msStyle = MDIS_ALLCHILDSTYLES | WS_VISIBLE | WS_CHILD | WS_CLIPCHILDREN; + DWORD msStyle = /* MDIS_ALLCHILDSTYLES | */ WS_VISIBLE | WS_CHILD | WS_CLIPCHILDREN; if ( style & wxHSCROLL ) msStyle |= WS_HSCROLL; if ( style & wxVSCROLL ) -- 2.45.2