git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59515
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// implement base class pure virtuals
// implement base class pure virtuals
- virtual bool SetShape(const wxRegion& region);
-
virtual bool SetTransparent(wxByte alpha);
virtual bool CanSetTransparent();
virtual bool SetTransparent(wxByte alpha);
virtual bool CanSetTransparent();
// implementation from now on
// --------------------------
// implementation from now on
// --------------------------
+ virtual bool DoSetShape(const wxRegion& region);
+
// activation hooks only necessary for MDI Implementation
static void MacDelayedDeactivation(long timestamp);
virtual void MacActivate( long timestamp , bool inIsActivating ) ;
// activation hooks only necessary for MDI Implementation
static void MacDelayedDeactivation(long timestamp);
virtual void MacActivate( long timestamp , bool inIsActivating ) ;
virtual wxPoint GetClientAreaOrigin() const;
virtual wxPoint GetClientAreaOrigin() const;
+ virtual bool SetShape(const wxRegion& region)
+ { return DoSetShape(region); }
+
// Attracts the users attention to this window if the application is
// inactive (should be called when a background event occurs)
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
// Attracts the users attention to this window if the application is
// inactive (should be called when a background event occurs)
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
-bool wxNonOwnedWindow::SetShape(const wxRegion& region)
+bool wxNonOwnedWindow::DoSetShape(const wxRegion& region)
{
wxCHECK_MSG( HasFlag(wxFRAME_SHAPED), false,
_T("Shaped windows must be created with the wxFRAME_SHAPED style."));
{
wxCHECK_MSG( HasFlag(wxFRAME_SHAPED), false,
_T("Shaped windows must be created with the wxFRAME_SHAPED style."));
if ( rgn.IsEmpty() )
return false ;
else
if ( rgn.IsEmpty() )
return false ;
else
+ return DoSetShape(rgn);
}
return m_nowpeer->SetShape(region);
}
return m_nowpeer->SetShape(region);