removing outdated code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1591,28 +1591,6 @@ void wxToolBar::OnPaint(wxPaintEvent& event)
|
||||
int w, h;
|
||||
GetSize( &w, &h );
|
||||
|
||||
bool drawMetalTheme = MacGetTopLevelWindow()->GetExtraStyle() & wxFRAME_EX_METAL;
|
||||
|
||||
if ( UMAGetSystemVersion() < 0x1050 )
|
||||
{
|
||||
if ( !drawMetalTheme )
|
||||
{
|
||||
HIThemePlacardDrawInfo info;
|
||||
memset( &info, 0, sizeof(info) );
|
||||
info.version = 0;
|
||||
info.state = IsEnabled() ? kThemeStateActive : kThemeStateInactive;
|
||||
|
||||
CGContextRef cgContext = (CGContextRef) MacGetCGContextRef();
|
||||
HIRect rect = CGRectMake( 0, 0, w, h );
|
||||
HIThemeDrawPlacard( &rect, &info, cgContext, kHIThemeOrientationNormal );
|
||||
}
|
||||
else
|
||||
{
|
||||
// leave the background as it is (striped or metal)
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
wxPaintDC dc(this);
|
||||
|
||||
wxRect rect(0,0,w,h);
|
||||
@@ -1628,7 +1606,6 @@ void wxToolBar::OnPaint(wxPaintEvent& event)
|
||||
else if ( HasFlag(wxTB_TOP) )
|
||||
dc.DrawLine(0, h-1, w, h-1);
|
||||
}
|
||||
}
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user