X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a23fd0e1d1329a4a258b4defb3e0b0001b700c6e..85d10d9bbb92b967eea4d2307ce4956aff5e6f46:/src/msw/window.cpp 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;