X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3379ed3789e405f874d9db757d95346f1d378795..409d5a58605cfb202774b59c3af078d3be89d7d5:/include/wx/generic/scrolwin.h diff --git a/include/wx/generic/scrolwin.h b/include/wx/generic/scrolwin.h index 43cc01fcad..ecf2c8fa26 100644 --- a/include/wx/generic/scrolwin.h +++ b/include/wx/generic/scrolwin.h @@ -42,7 +42,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxPanelNameStr; class WXDLLEXPORT wxGenericScrolledWindow : public wxPanel, public wxScrollHelper { -public: + public: wxGenericScrolledWindow() : wxScrollHelper(this) { } wxGenericScrolledWindow(wxWindow *parent, wxWindowID id = -1, @@ -66,8 +66,14 @@ public: virtual void PrepareDC(wxDC& dc) { DoPrepareDC(dc); } +protected: + // this is needed for wxEVT_PAINT processing hack described in + // wxScrollHelperEvtHandler::ProcessEvent() + void OnPaint(wxPaintEvent& event); + private: DECLARE_ABSTRACT_CLASS(wxGenericScrolledWindow) + DECLARE_EVENT_TABLE() }; #ifdef __VISUALC__