#ifdef __WXMAC__
#include "wx/mac/private.h"
+#include "wx/graphics.h"
#endif
#ifdef __WXGTK__
HIRect splitterRect = CGRectMake( rect.x , rect.y , rect.width , rect.height );
CGContextRef cgContext ;
#if wxMAC_USE_CORE_GRAPHICS
- cgContext = ((wxMacCGContext*)(dc.GetGraphicContext()))->GetNativeContext() ;
+ cgContext = (CGContextRef) dc.GetGraphicsContext()->GetNativeContext() ;
#else
Rect bounds ;
GetPortBounds( (CGrafPtr) dc.m_macPort , &bounds ) ;
switch (button)
{
default:
- case wxPaneInfo::buttonClose:
+ case wxAUI_BUTTON_CLOSE:
if (pane.state & wxPaneInfo::optionActive)
bmp = m_active_close_bitmap;
else
bmp = m_inactive_close_bitmap;
break;
- case wxPaneInfo::buttonPin:
+ case wxAUI_BUTTON_PIN:
if (pane.state & wxPaneInfo::optionActive)
bmp = m_active_pin_bitmap;
else