wxNonOwnedWindow::~wxNonOwnedWindow()
{
- m_isBeingDeleted = true;
+ SendDestroyEvent();
// destroy all children before we destroy the underlying DirectFB window,
// so that if any of them does something with the TLW, it will still work:
m_sizeSet = true;
wxSizeEvent event(GetSize(), GetId());
event.SetEventObject(this);
- GetEventHandler()->ProcessEvent(event);
+ HandleWindowEvent(event);
}
// make sure the window is fully painted, with all pending updates, before
return true;
}
+void wxNonOwnedWindow::Raise()
+{
+ m_dfbwin->RaiseToTop();
+}
+
+void wxNonOwnedWindow::Lower()
+{
+ m_dfbwin->LowerToBottom();
+}
+
// ----------------------------------------------------------------------------
// surfaces and painting
// ----------------------------------------------------------------------------