paint event handler takes a PaintDC now, and removed paintRawContext.