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
d34205ef
Commit
d34205ef
authored
May 15, 2000
by
Susan Farley
Committed by
Alexandre Julliard
May 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid calls to SetFocus when they are unnecessary.
parent
2b441913
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
listbox.c
controls/listbox.c
+10
-1
No files found.
controls/listbox.c
View file @
d34205ef
...
...
@@ -1819,7 +1819,12 @@ static LRESULT LISTBOX_HandleLButtonDown( WND *wnd, LB_DESCR *descr,
}
}
if
(
!
descr
->
lphc
)
SetFocus
(
wnd
->
hwndSelf
);
if
(
!
descr
->
lphc
)
{
HWND
hwndFocus
=
GetFocus
();
if
((
hwndFocus
!=
wnd
->
hwndSelf
)
&&
(
hwndFocus
!=
descr
->
owner
))
SetFocus
(
wnd
->
hwndSelf
);
}
else
SetFocus
(
(
descr
->
lphc
->
hWndEdit
)
?
descr
->
lphc
->
hWndEdit
:
descr
->
lphc
->
self
->
hwndSelf
)
;
...
...
@@ -2638,6 +2643,10 @@ static inline LRESULT WINAPI ListBoxWndProc_locked( WND* wnd, UINT msg,
LISTBOX_RepaintItem
(
wnd
,
descr
,
descr
->
focus_item
,
ODA_FOCUS
);
return
LB_OKAY
;
case
WM_MOUSEACTIVATE
:
case
WM_ACTIVATE
:
return
MA_NOACTIVATE
;
case
WM_DESTROY
:
return
LISTBOX_Destroy
(
wnd
,
descr
);
...
...
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