m_constraints = (wxLayoutConstraints *) NULL;
m_constraintsInvolvedIn = (wxWindowList *) NULL;
m_windowSizer = (wxSizer *) NULL;
+ m_containingSizer = (wxSizer *) NULL;
m_autoLayout = FALSE;
#endif // wxUSE_CONSTRAINTS
m_constraints = NULL;
}
+ if ( m_containingSizer )
+ m_containingSizer->Remove((wxWindow*)this);
+
if ( m_windowSizer )
delete m_windowSizer;
wxWindow *winOld = GetCapture();
if ( winOld )
{
+ // I think this is correct, but not compatible with some ports
+#if defined(__WXX11__) || defined(__WXMGL__)
+ ((wxWindowBase*) winOld)->DoReleaseMouse();
+#endif
+
// save it on stack
wxWindowNext *item = new wxWindowNext;
item->win = winOld;
if ( ms_winCaptureNext )
{
+ // I think this is correct, but not compatible with some ports
+#if defined(__WXX11__) || defined(__WXMGL__)
+ ((wxWindowBase*)ms_winCaptureNext->win)->DoCaptureMouse();
+#else
ms_winCaptureNext->win->CaptureMouse();
-
+#endif
+
wxWindowNext *item = ms_winCaptureNext;
ms_winCaptureNext = item->next;
delete item;