wxGraphicsContext and wxAutoBufferedPaintDC

Robert Roebling robert at roebling.de
Tue May 6 03:28:43 PDT 2008


Robert Hölzl wrote:

> how can I use a wxGraphicsContext in a wxAutoBufferedPaintDC (on  
> windows my application is flickering extremly)?
> according to the documentation only a WindowsDC can be specified as  
> parameter to wx.GraphicsContext.Create(), but wx.AutoBufferedPaintDC()  
> is not inherited from WindowsDC...

Maybe get the wxBitmap from the wxAutoBufferedPaintDC, create
a wxMemoryDC from it and create the wxGraphicsContext from
that.

  Robert



More information about the wx-users mailing list