Patch [ 1114647 ] Mouse wheel support for wxVScrolledWindow

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-02-03 19:18:59 +00:00
parent 4fb6c97e93
commit 4719e58dc1
2 changed files with 36 additions and 0 deletions

View File

@@ -163,6 +163,9 @@ protected:
// the event handlers
void OnSize(wxSizeEvent& event);
void OnScroll(wxScrollWinEvent& event);
#if wxUSE_MOUSEWHEEL
void OnMouseWheel(wxMouseEvent& event);
#endif
// find the index of the line we need to show at the top of the window such
// that the last (fully or partially) visible line is the given one
@@ -193,6 +196,10 @@ private:
// partly, visible one)
size_t m_nVisible;
// accumulated mouse wheel rotation
#if wxUSE_MOUSEWHEEL
int m_sumWheelRotation;
#endif
DECLARE_EVENT_TABLE()
DECLARE_NO_COPY_CLASS(wxVScrolledWindow)