[wxPython] PaintDC in wxScrollWindows on MSW

Hi

I have a wxScrollWindows that uses a PaintDC in an OnPaint to set the background colour. Things all fine on GTK but on MSW any new region of the window exposed by a scoll is the default colour.

Should I use a different DC or a different EVENT?

Nigel

I have a wxScrollWindows that uses a PaintDC in an OnPaint to
set the background colour. Things all fine on GTK but on MSW
any new region of the window exposed by a scoll is the default
colour.

Should I use a different DC or a different EVENT?

You may want to try EVT_ERASE_BACKGROUND.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!