X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..d7eee191c55687785a2be927fd387d10514cdf1b:/include/wx/generic/scrolwin.h diff --git a/include/wx/generic/scrolwin.h b/include/wx/generic/scrolwin.h index f614ea9647..ecf2c8fa26 100644 --- a/include/wx/generic/scrolwin.h +++ b/include/wx/generic/scrolwin.h @@ -13,7 +13,7 @@ #define _WX_GENERIC_SCROLLWIN_H_ #ifdef __GNUG__ - #pragma interface "scrolwin.h" + #pragma interface "genscrolwin.h" #endif // ---------------------------------------------------------------------------- @@ -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__