wxNonOwnedWindow::~wxNonOwnedWindow()
{
SendDestroyEvent();
-
+
wxRemoveWXWindowAssociation( this ) ;
-
+
DestroyChildren();
-
+
delete m_nowpeer;
// avoid dangling refs
bool wxNonOwnedWindow::ShowWithEffect(wxShowEffect effect,
unsigned timeout )
-{
+{
if ( !wxWindow::Show(true) )
return false;
HandleWindowEvent(event);
- return m_nowpeer->ShowWithEffect(true, effect, timeout);
+ return m_nowpeer->ShowWithEffect(true, effect, timeout);
}
bool wxNonOwnedWindow::HideWithEffect(wxShowEffect effect,
unsigned timeout )
-{
+{
if ( !wxWindow::Show(false) )
return false;
- return m_nowpeer->ShowWithEffect(false, effect, timeout);
+ return m_nowpeer->ShowWithEffect(false, effect, timeout);
}
wxPoint wxNonOwnedWindow::GetClientAreaOrigin() const
}
bool wxNonOwnedWindow::SetBackgroundColour(const wxColour& c )
-{
+{
if ( !wxWindow::SetBackgroundColour(c) && m_hasBgCol )
return false ;
-
+
if ( GetBackgroundStyle() != wxBG_STYLE_CUSTOM )
{
if ( m_nowpeer )
return m_nowpeer->SetBackgroundColour(c);
}
return true;
-}
+}
// Raise the window to the top of the Z order
void wxNonOwnedWindow::Raise()
if ( m_nowpeer )
m_nowpeer->Show(show);
-
+
if ( show )
{
// because apps expect a size event to occur at this moment
event.SetEventObject(this);
HandleWindowEvent(event);
}
-
+
return true ;
}
{
if ( !wxWindow::SetBackgroundStyle(style) )
return false ;
-
+
return m_nowpeer ? m_nowpeer->SetBackgroundStyle(style) : true;
}
{
if ( m_nowpeer == NULL )
return;
-
+
int w,h;
-
+
m_nowpeer->GetSize(w, h);
if (width)
bool wxNonOwnedWindow::DoSetShape(const wxRegion& region)
{
wxCHECK_MSG( HasFlag(wxFRAME_SHAPED), false,
- _T("Shaped windows must be created with the wxFRAME_SHAPED style."));
+ wxT("Shaped windows must be created with the wxFRAME_SHAPED style."));
// The empty region signifies that the shape
// should be removed from the window.