]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/window.cpp
Compilation fix.
[wxWidgets.git] / src / os2 / window.cpp
index 25610ad24863b1e170559b5cd6c8c934dab7461f..7903c10e6c5bf4e28758a0f84e6258c8925cde0a 100644 (file)
@@ -1364,7 +1364,8 @@ void wxWindowOS2::OnIdle(
             (void)GetEventHandler()->ProcessEvent(rEvent);
         }
     }
-    UpdateWindowUI();
+    if (wxUpdateUIEvent::CanUpdate())
+        UpdateWindowUI();
 } // 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