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
e8ffcaa3
Commit
e8ffcaa3
authored
Apr 16, 2001
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 16, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Slightly improve keyboard tracking in combobox.
parent
7c7a3571
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
listbox.c
controls/listbox.c
+13
-1
No files found.
controls/listbox.c
View file @
e8ffcaa3
...
...
@@ -753,6 +753,8 @@ static LRESULT LISTBOX_GetText( LB_DESCR *descr, INT index, LPARAM lParam, BOOL
if
(
!
lParam
)
return
strlenW
(
descr
->
items
[
index
].
str
);
TRACE
(
"index %d (0x%04x) %s
\n
"
,
index
,
index
,
debugstr_w
(
descr
->
items
[
index
].
str
));
if
(
unicode
)
{
LPWSTR
buffer
=
(
LPWSTR
)
lParam
;
...
...
@@ -2046,6 +2048,7 @@ static LRESULT LISTBOX_HandleLButtonDownCombo( WND *pWnd, LB_DESCR *pDescr,
if
(
!
PtInRect
(
&
screenRect
,
screenMousePos
))
{
LISTBOX_SetCaretIndex
(
pWnd
,
pDescr
,
pDescr
->
lphc
->
droppedIndex
,
FALSE
);
LISTBOX_SetSelection
(
pWnd
,
pDescr
,
pDescr
->
lphc
->
droppedIndex
,
FALSE
,
FALSE
);
COMBO_FlipListbox
(
pDescr
->
lphc
,
FALSE
,
FALSE
);
return
0
;
...
...
@@ -2745,6 +2748,10 @@ static LRESULT WINAPI ListBoxWndProc_locked( WND* wnd, UINT msg,
{
INT
index
;
LPWSTR
textW
;
if
(
HAS_STRINGS
(
descr
))
TRACE
(
"LB_SELECTSTRING: %s
\n
"
,
unicode
?
debugstr_w
((
LPWSTR
)
lParam
)
:
debugstr_a
((
LPSTR
)
lParam
));
if
(
unicode
||
!
HAS_STRINGS
(
descr
))
textW
=
(
LPWSTR
)
lParam
;
else
...
...
@@ -2758,7 +2765,10 @@ static LRESULT WINAPI ListBoxWndProc_locked( WND* wnd, UINT msg,
if
(
!
unicode
&&
HAS_STRINGS
(
descr
))
HeapFree
(
GetProcessHeap
(),
0
,
textW
);
if
(
index
!=
LB_ERR
)
{
LISTBOX_SetCaretIndex
(
wnd
,
descr
,
index
,
TRUE
);
LISTBOX_SetSelection
(
wnd
,
descr
,
index
,
TRUE
,
FALSE
);
}
return
index
;
}
...
...
@@ -3061,7 +3071,7 @@ static LRESULT WINAPI ComboLBWndProc_locked( WND* wnd, UINT msg,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
unicode
)
{
LRESULT
lRet
=
0
;
HWND
hwnd
=
wnd
->
hwndSelf
;
HWND
hwnd
;
if
(
wnd
)
{
...
...
@@ -3070,6 +3080,8 @@ static LRESULT WINAPI ComboLBWndProc_locked( WND* wnd, UINT msg,
TRACE_
(
combo
)(
"[%04x]: msg %s wp %08x lp %08lx
\n
"
,
wnd
->
hwndSelf
,
SPY_GetMsgName
(
msg
),
wParam
,
lParam
);
hwnd
=
wnd
->
hwndSelf
;
if
(
descr
||
msg
==
WM_CREATE
)
{
LPHEADCOMBO
lphc
=
(
descr
)
?
descr
->
lphc
:
NULL
;
...
...
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