(void)GetEventHandler()->ProcessEvent(rEvent);
}
}
- UpdateWindowUI();
+ if (wxUpdateUIEvent::CanUpdate())
+ UpdateWindowUI();
} // end of wxWindowOS2::OnIdle
//
bool wxWindowOS2::HandleDestroy()
{
- SendDestroyEvent();
+ wxWindowDestroyEvent vEvent((wxWindow*)this);
+ vEvent.SetId(GetId());
+ (void)GetEventHandler()->ProcessEvent(vEvent);
//
// Delete our drop target if we've got one