CtrlLib: ScrollBar now reacts to MouseWheel

git-svn-id: svn://ultimatepp.org/upp/trunk@6997 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-03-05 19:44:13 +00:00
parent ee42437b21
commit 0b78b2a657
2 changed files with 6 additions and 0 deletions

View file

@ -284,6 +284,11 @@ void ScrollBar::LeftRepeat(Point p, dword) {
Refresh();
}
void ScrollBar::MouseWheel(Point p, int zdelta, dword keyflags)
{
Wheel(zdelta);
}
void ScrollBar::CancelMode() {
push = light = -1;
}

View file

@ -9,6 +9,7 @@ public:
virtual void MouseLeave();
virtual void LeftUp(Point p, dword);
virtual void LeftRepeat(Point p, dword);
virtual void MouseWheel(Point p, int zdelta, dword keyflags);
virtual void CancelMode();
virtual void FrameLayout(Rect& r);