Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
101c8ca5
Commit
101c8ca5
authored
Feb 25, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/comboex: Reduce variable scope.
parent
0d01212d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
comboex.c
dlls/comctl32/comboex.c
+5
-3
No files found.
dlls/comctl32/comboex.c
View file @
101c8ca5
...
@@ -1741,7 +1741,7 @@ COMBOEX_EditWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
...
@@ -1741,7 +1741,7 @@ COMBOEX_EditWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
return
DefSubclassProc
(
hwnd
,
uMsg
,
wParam
,
lParam
);
return
DefSubclassProc
(
hwnd
,
uMsg
,
wParam
,
lParam
);
case
WM_KEYDOWN
:
{
case
WM_KEYDOWN
:
{
INT_PTR
oldItem
,
selected
,
step
=
1
;
INT_PTR
oldItem
,
selected
;
CBE_ITEMDATA
*
item
;
CBE_ITEMDATA
*
item
;
switch
((
INT
)
wParam
)
switch
((
INT
)
wParam
)
...
@@ -1851,13 +1851,15 @@ COMBOEX_EditWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
...
@@ -1851,13 +1851,15 @@ COMBOEX_EditWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
break
;
break
;
case
VK_UP
:
case
VK_UP
:
step
=
-
1
;
case
VK_DOWN
:
case
VK_DOWN
:
/* by default, step is 1 */
{
INT
step
=
wParam
==
VK_DOWN
?
1
:
-
1
;
oldItem
=
SendMessageW
(
infoPtr
->
hwndSelf
,
CB_GETCURSEL
,
0
,
0
);
oldItem
=
SendMessageW
(
infoPtr
->
hwndSelf
,
CB_GETCURSEL
,
0
,
0
);
if
(
oldItem
>=
0
&&
oldItem
+
step
>=
0
)
if
(
oldItem
>=
0
&&
oldItem
+
step
>=
0
)
SendMessageW
(
infoPtr
->
hwndSelf
,
CB_SETCURSEL
,
oldItem
+
step
,
0
);
SendMessageW
(
infoPtr
->
hwndSelf
,
CB_SETCURSEL
,
oldItem
+
step
,
0
);
return
0
;
return
0
;
}
default:
default:
return
DefSubclassProc
(
hwnd
,
uMsg
,
wParam
,
lParam
);
return
DefSubclassProc
(
hwnd
,
uMsg
,
wParam
,
lParam
);
}
}
...
...
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