X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7de595519a38b04622b80fbb7b90f741f8a832b2..a430d03e5f1b1fbd6c11a090a9aaaad84fb2a5d9:/src/os2/window.cpp diff --git a/src/os2/window.cpp b/src/os2/window.cpp index 25610ad248..70d2e322aa 100644 --- a/src/os2/window.cpp +++ b/src/os2/window.cpp @@ -1364,7 +1364,8 @@ void wxWindowOS2::OnIdle( (void)GetEventHandler()->ProcessEvent(rEvent); } } - UpdateWindowUI(); + if (wxUpdateUIEvent::CanUpdate(this)) + UpdateWindowUI(wxUPDATE_UI_FROMIDLE); } // end of wxWindowOS2::OnIdle // @@ -1384,17 +1385,6 @@ bool wxWindowOS2::Reparent( return TRUE; } // end of wxWindowOS2::Reparent -void wxWindowOS2::Clear() -{ - wxClientDC vDc((wxWindow*)this); - wxBrush vBrush( GetBackgroundColour() - ,wxSOLID - ); - - vDc.SetBackground(vBrush); - vDc.Clear(); -} // end of wxWindowOS2::Clear - void wxWindowOS2::Update() { ::WinUpdateWindow(GetHwnd()); @@ -3513,7 +3503,9 @@ bool wxWindowOS2::HandleCreate( bool wxWindowOS2::HandleDestroy() { - SendDestroyEvent(); + wxWindowDestroyEvent vEvent((wxWindow*)this); + vEvent.SetId(GetId()); + (void)GetEventHandler()->ProcessEvent(vEvent); // // Delete our drop target if we've got one