+ {
+ // as out of order redraw is not supported under CQ, we have to create a qd port for these
+ // situations
+ m_macLocalOrigin.x = x ;
+ m_macLocalOrigin.y = y ;
+
+ m_graphicContext = new wxMacCGContext( (CGrafPtr) m_macPort ) ;
+ m_graphicContext->SetPen( m_pen ) ;
+ m_graphicContext->SetBrush( m_brush ) ;
+ SetBackground(MacGetBackgroundBrush(window));
+ }