AutoBufferedPaintDC inherits from DC
adopted to Linux