]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/window.cpp
VC 7.1 warning fix
[wxWidgets.git] / src / os2 / window.cpp
index 25610ad24863b1e170559b5cd6c8c934dab7461f..affeabe47e5588111935250d5a1448f18901c9d7 100644 (file)
@@ -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