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
2813b43a
Commit
2813b43a
authored
Nov 11, 2018
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Nov 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listbox: Clear LBS_OWNERDRAWVARIABLE if LBS_OWNERDRAWFIXED is set.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4c5f3849
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
listbox.c
dlls/comctl32/listbox.c
+2
-0
listbox.c
dlls/comctl32/tests/listbox.c
+2
-1
No files found.
dlls/comctl32/listbox.c
View file @
2813b43a
...
...
@@ -2520,6 +2520,8 @@ static BOOL LISTBOX_Create( HWND hwnd, LPHEADCOMBO lphc )
if
(
descr
->
style
&
LBS_OWNERDRAWFIXED
)
{
descr
->
style
&=
~
LBS_OWNERDRAWVARIABLE
;
if
(
descr
->
lphc
&&
(
descr
->
lphc
->
dwStyle
&
CBS_DROPDOWN
))
{
/* WinWord gets VERY unhappy if we send WM_MEASUREITEM from here */
...
...
dlls/comctl32/tests/listbox.c
View file @
2813b43a
...
...
@@ -435,6 +435,8 @@ static void test_ownerdraw(void)
NULL
,
NULL
,
NULL
,
0
);
ok
(
hLB
!=
NULL
,
"last error 0x%08x
\n
"
,
GetLastError
());
ok
(
GetWindowLongA
(
hLB
,
GWL_STYLE
)
&
LBS_OWNERDRAWVARIABLE
,
"Unexpected window style.
\n
"
);
ret
=
SendMessageA
(
hLB
,
LB_INSERTSTRING
,
-
1
,
0
);
ok
(
ret
==
0
,
"Unexpected return value %d.
\n
"
,
ret
);
ret
=
SendMessageA
(
hLB
,
LB_INSERTSTRING
,
-
1
,
0
);
...
...
@@ -450,7 +452,6 @@ static void test_ownerdraw(void)
ok
(
ret
==
LB_OKAY
,
"Failed to set item height, %d.
\n
"
,
ret
);
ret
=
SendMessageA
(
hLB
,
LB_GETITEMHEIGHT
,
0
,
0
);
todo_wine
ok
(
ret
==
42
,
"Unexpected item height %d.
\n
"
,
ret
);
ret
=
SendMessageA
(
hLB
,
LB_GETITEMHEIGHT
,
1
,
0
);
...
...
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