X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7de595519a38b04622b80fbb7b90f741f8a832b2..cda66071f17f062779a7009065e5ff7dd958440b:/src/os2/window.cpp diff --git a/src/os2/window.cpp b/src/os2/window.cpp index 25610ad248..affeabe47e 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 // @@ -3513,7 +3514,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