X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e421922f90186d0619a806d277a0a2182e61b5fb..2b004197c8cea40b41632e86cf27857463f985b8:/include/wx/scrolwin.h diff --git a/include/wx/scrolwin.h b/include/wx/scrolwin.h index 9464b6973d..2f955eaea7 100644 --- a/include/wx/scrolwin.h +++ b/include/wx/scrolwin.h @@ -14,6 +14,7 @@ #include "wx/window.h" +class WXDLLEXPORT wxScrollHelperEvtHandler; class WXDLLEXPORT wxTimer; // ---------------------------------------------------------------------------- @@ -139,6 +140,13 @@ protected: *h = size.y; } + // change just the target window (unlike SetWindow which changes m_win as + // well) + void DoSetTargetWindow(wxWindow *target); + + // delete the event handler we installed + void DeleteEvtHandler(); + wxWindow *m_win, *m_targetWindow; @@ -164,13 +172,15 @@ protected: #if wxUSE_MOUSEWHEEL int m_wheelRotation; #endif // wxUSE_MOUSEWHEEL + + wxScrollHelperEvtHandler *m_handler; }; // ---------------------------------------------------------------------------- // wxScrolledWindow: a wxWindow which knows how to scroll // ---------------------------------------------------------------------------- -#ifdef __WXGTK__ +#if defined(__WXGTK__) && !defined(__WXUNIVERSAL__) #include "wx/gtk/scrolwin.h" #else // !wxGTK #include "wx/generic/scrolwin.h"