#include "wx/bitmap.h"
#include "wx/settings.h"
#include "wx/dcclient.h"
+ #include "wx/dcmemory.h"
#include "wx/toplevel.h"
#endif
#include "wx/mstream.h"
#endif // wxHAS_DRAW_TITLE_BAR_BITMAP
+
// check if we're currently in a paint event
inline bool wxInPaintEvent(wxWindow* win, wxDC& dc)
{
- wxUnusedVar(dc);
- return ( win->MacGetCGContextRef() != NULL );
+ return win->MacGetCGContextRef() != NULL ||
+ // wxMemoryDC's also have a valid CGContext.
+ dc.IsKindOf( CLASSINFO(wxMemoryDC) );
}
if ( hasMetal )
HIThemeDrawBackground(&splitterRect, &bgdrawInfo, cgContext, kHIThemeOrientationNormal);
- else
+ else
{
CGContextSetFillColorWithColor(cgContext,win->GetBackgroundColour().GetCGColor());
CGContextFillRect(cgContext,splitterRect);
}
-
+
HIThemeSplitterDrawInfo drawInfo;
drawInfo.version = 0;
drawInfo.state = kThemeStateActive;
#endif // wxHAS_DRAW_TITLE_BAR_BITMAP
-#endif
\ No newline at end of file
+#endif