DestroyChildren();
delete m_nowpeer;
+ m_nowpeer = NULL;
// avoid dangling refs
if ( s_macDeactivateWindow == this )
s_macDeactivateWindow = NULL;
}
+bool wxNonOwnedWindow::Destroy()
+{
+ WillBeDestroyed();
+
+ return wxWindow::Destroy();
+}
+
+void wxNonOwnedWindow::WillBeDestroyed()
+{
+ if ( m_nowpeer )
+ m_nowpeer->WillBeDestroyed();
+}
+
// ----------------------------------------------------------------------------
// wxNonOwnedWindow misc
// ----------------------------------------------------------------------------
return true;
}
+void wxNonOwnedWindow::SetWindowStyleFlag(long flags)
+{
+ if (flags == GetWindowStyleFlag())
+ return;
+
+ wxWindow::SetWindowStyleFlag(flags);
+
+ if (m_nowpeer)
+ m_nowpeer->SetWindowStyleFlag(flags);
+}
+
// Raise the window to the top of the Z order
void wxNonOwnedWindow::Raise()
{
return;
int left, top, w, h;
- // perhaps we should do this for all ?
-#ifdef __WXOSX_IPHONE__
- m_peer->GetContentArea(left, top, w, h);
-#else
m_nowpeer->GetContentArea(left, top, w, h);
-#endif
if (width)
*width = w ;