From 85d10d9bbb92b967eea4d2307ce4956aff5e6f46 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 13 May 1999 21:33:12 +0000 Subject: [PATCH 1/1] wxWindow::Show() works again git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/window.h | 1 - src/msw/window.cpp | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/msw/window.h b/include/wx/msw/window.h index 04771fc5de..643d79f01d 100644 --- a/include/wx/msw/window.h +++ b/include/wx/msw/window.h @@ -345,7 +345,6 @@ protected: // additional (MSW specific) flags bool m_useCtl3D:1; // Using CTL3D for this control - bool m_inOnSize:1; // Protection against OnSize reentry bool m_backgroundTransparent:1; bool m_mouseInWindow:1; bool m_doubleClickAllowed:1; diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 3a7107fbba..d398797f0f 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -293,8 +293,6 @@ void wxWindow::Init() m_caretEnabled = m_caretShown = FALSE; - m_inOnSize = FALSE; - m_isBeingDeleted = FALSE; m_oldWndProc = 0; m_useCtl3D = FALSE; @@ -307,6 +305,9 @@ void wxWindow::Init() m_yThumbSize = 0; m_backgroundTransparent = FALSE; + // as all windows are created with WS_VISIBLE style... + m_isShown = TRUE; + #if wxUSE_MOUSEEVENT_HACK m_lastMouseX = m_lastMouseY = -1; -- 2.45.2