mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-24 14:22:40 -06:00
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:
parent
ee42437b21
commit
0b78b2a657
2 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue