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
b6dc726b
Commit
b6dc726b
authored
Mar 23, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Update view on style change only if LVS_TYPEMASK styles have changed.
parent
cc737bd4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
listview.c
dlls/comctl32/listview.c
+4
-2
listview.c
dlls/comctl32/tests/listview.c
+6
-0
No files found.
dlls/comctl32/listview.c
View file @
b6dc726b
...
...
@@ -11067,7 +11067,6 @@ static INT LISTVIEW_StyleChanged(LISTVIEW_INFO *infoPtr, WPARAM wStyleType,
if
(
wStyleType
!=
GWL_STYLE
)
return
0
;
infoPtr
->
dwStyle
=
lpss
->
styleNew
;
map_style_view
(
infoPtr
);
if
(((
lpss
->
styleOld
&
WS_HSCROLL
)
!=
0
)
&&
((
lpss
->
styleNew
&
WS_HSCROLL
)
==
0
))
...
...
@@ -11080,7 +11079,10 @@ static INT LISTVIEW_StyleChanged(LISTVIEW_INFO *infoPtr, WPARAM wStyleType,
if
(
uNewView
!=
uOldView
)
{
HIMAGELIST
himl
;
/* LVM_SETVIEW doesn't change window style bits within LVS_TYPEMASK,
changing style updates current view only when view bits change. */
map_style_view
(
infoPtr
);
SendMessageW
(
infoPtr
->
hwndEdit
,
WM_KILLFOCUS
,
0
,
0
);
ShowWindow
(
infoPtr
->
hwndHeader
,
SW_HIDE
);
...
...
dlls/comctl32/tests/listview.c
View file @
b6dc726b
...
...
@@ -4554,6 +4554,12 @@ static void test_get_set_view(void)
style
=
GetWindowLongPtrA
(
hwnd
,
GWL_STYLE
);
ok
(
style
&
LVS_LIST
,
"Expected style to be preserved
\n
"
);
/* now change window style to see if view is remapped */
style
=
GetWindowLongPtrA
(
hwnd
,
GWL_STYLE
);
SetWindowLongPtrA
(
hwnd
,
GWL_STYLE
,
style
|
LVS_SHOWSELALWAYS
);
ret
=
SendMessageA
(
hwnd
,
LVM_GETVIEW
,
0
,
0
);
expect
(
LV_VIEW_SMALLICON
,
ret
);
DestroyWindow
(
hwnd
);
}
...
...
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