Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
287561cc
Commit
287561cc
authored
Apr 11, 2008
by
Peter Urbanec
Committed by
Alexandre Julliard
Apr 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Mousewheel support for updown control.
parent
9f82e473
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
updown.c
dlls/comctl32/updown.c
+31
-0
No files found.
dlls/comctl32/updown.c
View file @
287561cc
...
...
@@ -470,6 +470,28 @@ static LRESULT UPDOWN_KeyPressed(UPDOWN_INFO *infoPtr, int key)
}
/***********************************************************************
* UPDOWN_MouseWheel
*
* Handle mouse wheel scrolling
*/
static
LRESULT
UPDOWN_MouseWheel
(
UPDOWN_INFO
*
infoPtr
,
WPARAM
wParam
)
{
int
iWheelDelta
=
GET_WHEEL_DELTA_WPARAM
(
wParam
)
/
WHEEL_DELTA
;
if
(
wParam
&
(
MK_SHIFT
|
MK_CONTROL
))
return
0
;
if
(
iWheelDelta
!=
0
)
{
UPDOWN_GetBuddyInt
(
infoPtr
);
UPDOWN_DoAction
(
infoPtr
,
abs
(
iWheelDelta
),
iWheelDelta
>
0
?
FLAG_INCR
:
FLAG_DECR
);
}
return
1
;
}
/***********************************************************************
* UPDOWN_Buddy_SubclassProc used to handle messages sent to the buddy
* control.
*/
...
...
@@ -486,6 +508,11 @@ UPDOWN_Buddy_SubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
UPDOWN_KeyPressed
(
UPDOWN_GetInfoPtr
(
upDownHwnd
),
(
int
)
wParam
);
}
else
if
(
uMsg
==
WM_MOUSEWHEEL
)
{
HWND
upDownHwnd
=
GetPropW
(
hwnd
,
BUDDY_UPDOWN_HWND
);
UPDOWN_MouseWheel
(
UPDOWN_GetInfoPtr
(
upDownHwnd
),
(
int
)
wParam
);
}
return
CallWindowProcW
(
superClassWndProc
,
hwnd
,
uMsg
,
wParam
,
lParam
);
}
...
...
@@ -929,6 +956,10 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, L
UPDOWN_HandleMouseEvent
(
infoPtr
,
message
,
(
SHORT
)
LOWORD
(
lParam
),
(
SHORT
)
HIWORD
(
lParam
));
break
;
case
WM_MOUSEWHEEL
:
UPDOWN_MouseWheel
(
infoPtr
,
wParam
);
break
;
case
WM_KEYDOWN
:
if
((
infoPtr
->
dwStyle
&
UDS_ARROWKEYS
)
&&
UPDOWN_IsEnabled
(
infoPtr
))
return
UPDOWN_KeyPressed
(
infoPtr
,
(
int
)
wParam
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment