#include "wx/wx.h"
#endif
+#include "wx/custombgwin.h"
#include "wx/dcbuffer.h"
// ----------------------------------------------------------------------------
};
-class MyCanvas : public wxScrolledWindow
+class MyCanvas : public wxCustomBackgroundWindow<wxScrolledWindow>
{
public:
MyCanvas(wxFrame *parent);
END_EVENT_TABLE()
MyCanvas::MyCanvas(wxFrame *parent)
- : wxScrolledWindow(parent, wxID_ANY)
{
+ Create(parent, wxID_ANY);
+
m_useBuffer = false;
m_useBgBmp = false;
m_eraseBgInPaint = false;