]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/window.cpp
Compilation fix.
[wxWidgets.git] / src / os2 / window.cpp
index 99bd6f5a511ccb60901f7f142f3facdd7f9d559d..7903c10e6c5bf4e28758a0f84e6258c8925cde0a 100644 (file)
@@ -1364,7 +1364,8 @@ void wxWindowOS2::OnIdle(
             (void)GetEventHandler()->ProcessEvent(rEvent);
         }
     }
-    UpdateWindowUI();
+    if (wxUpdateUIEvent::CanUpdate())
+        UpdateWindowUI();
 } // end of wxWindowOS2::OnIdle
 
 //
@@ -3514,7 +3515,7 @@ bool wxWindowOS2::HandleCreate(
 bool wxWindowOS2::HandleDestroy()
 {
     wxWindowDestroyEvent            vEvent((wxWindow*)this);
-
+    vEvent.SetId(GetId());
     (void)GetEventHandler()->ProcessEvent(vEvent);
 
     //