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
7d748b6b
Commit
7d748b6b
authored
Dec 23, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/comboex: Don't invalidate all windows if Edit box isn't set up.
parent
7deb2779
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
comboex.c
dlls/comctl32/comboex.c
+5
-9
No files found.
dlls/comctl32/comboex.c
View file @
7d748b6b
...
...
@@ -1149,7 +1149,7 @@ static LRESULT COMBOEX_Command (COMBOEX_INFO *infoPtr, WPARAM wParam)
*/
ShowWindow
(
infoPtr
->
hwndEdit
,
SW_SHOW
);
InvalidateRect
(
infoPtr
->
hwndCombo
,
0
,
TRUE
);
InvalidateRect
(
infoPtr
->
hwndEdit
,
0
,
TRUE
);
if
(
infoPtr
->
hwndEdit
)
InvalidateRect
(
infoPtr
->
hwndEdit
,
0
,
TRUE
);
cursel
=
SendMessageW
(
infoPtr
->
hwndCombo
,
CB_GETCURSEL
,
0
,
0
);
if
(
cursel
==
-
1
)
{
cmp_func_t
cmptext
=
get_cmp_func
(
infoPtr
);
...
...
@@ -1164,8 +1164,7 @@ static LRESULT COMBOEX_Command (COMBOEX_INFO *infoPtr, WPARAM wParam)
if
((
cursel
==
n
)
||
((
INT_PTR
)
item
==
CB_ERR
))
{
TRACE
(
"failed to find match??? item=%p cursel=%d
\n
"
,
item
,
cursel
);
if
(
infoPtr
->
hwndEdit
)
SetFocus
(
infoPtr
->
hwndEdit
);
if
(
infoPtr
->
hwndEdit
)
SetFocus
(
infoPtr
->
hwndEdit
);
return
0
;
}
}
...
...
@@ -1174,8 +1173,7 @@ static LRESULT COMBOEX_Command (COMBOEX_INFO *infoPtr, WPARAM wParam)
if
((
INT_PTR
)
item
==
CB_ERR
)
{
TRACE
(
"failed to find match??? item=%p cursel=%d
\n
"
,
item
,
cursel
);
if
(
infoPtr
->
hwndEdit
)
SetFocus
(
infoPtr
->
hwndEdit
);
if
(
infoPtr
->
hwndEdit
)
SetFocus
(
infoPtr
->
hwndEdit
);
return
0
;
}
}
...
...
@@ -1271,8 +1269,7 @@ static LRESULT COMBOEX_Command (COMBOEX_INFO *infoPtr, WPARAM wParam)
* after passing the command to the parent of the ComboEx.
*/
lret
=
SendMessageW
(
parent
,
WM_COMMAND
,
wParam
,
(
LPARAM
)
infoPtr
->
hwndSelf
);
if
(
infoPtr
->
hwndEdit
)
SetFocus
(
infoPtr
->
hwndEdit
);
if
(
infoPtr
->
hwndEdit
)
SetFocus
(
infoPtr
->
hwndEdit
);
return
lret
;
}
return
0
;
...
...
@@ -1374,8 +1371,7 @@ static LRESULT COMBOEX_DrawItem (const COMBOEX_INFO *infoPtr, DRAWITEMSTRUCT con
GetWindowRect
(
infoPtr
->
hwndSelf
,
&
exrc
);
GetWindowRect
(
infoPtr
->
hwndCombo
,
&
cbrc
);
edrc
.
left
=
edrc
.
top
=
edrc
.
right
=
edrc
.
bottom
=-
1
;
if
(
infoPtr
->
hwndEdit
)
GetWindowRect
(
infoPtr
->
hwndEdit
,
&
edrc
);
if
(
infoPtr
->
hwndEdit
)
GetWindowRect
(
infoPtr
->
hwndEdit
,
&
edrc
);
TRACE
(
"window rects ex=(%s), cb=(%s), ed=(%s)
\n
"
,
wine_dbgstr_rect
(
&
exrc
),
wine_dbgstr_rect
(
&
cbrc
),
wine_dbgstr_rect
(
&
edrc
));
...
...
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