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;
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 ;