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
6de37643
Commit
6de37643
authored
Jun 24, 2008
by
Guy Albertelli
Committed by
Alexandre Julliard
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: listview: Implement LVS_NOCOLUMNHEADER support for WM_STYLECHANGED message.
When switching LVS_NOCOLUMNHEADER on/off change the style of the header control HDS_HIDDEN.
parent
ff9bb5ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
listview.c
dlls/comctl32/listview.c
+21
-2
No files found.
dlls/comctl32/listview.c
View file @
6de37643
...
@@ -9420,6 +9420,7 @@ static INT LISTVIEW_StyleChanged(LISTVIEW_INFO *infoPtr, WPARAM wStyleType,
...
@@ -9420,6 +9420,7 @@ static INT LISTVIEW_StyleChanged(LISTVIEW_INFO *infoPtr, WPARAM wStyleType,
{
{
UINT
uNewView
=
lpss
->
styleNew
&
LVS_TYPEMASK
;
UINT
uNewView
=
lpss
->
styleNew
&
LVS_TYPEMASK
;
UINT
uOldView
=
lpss
->
styleOld
&
LVS_TYPEMASK
;
UINT
uOldView
=
lpss
->
styleOld
&
LVS_TYPEMASK
;
UINT
style
;
TRACE
(
"(styletype=%lx, styleOld=0x%08x, styleNew=0x%08x)
\n
"
,
TRACE
(
"(styletype=%lx, styleOld=0x%08x, styleNew=0x%08x)
\n
"
,
wStyleType
,
lpss
->
styleOld
,
lpss
->
styleNew
);
wStyleType
,
lpss
->
styleOld
,
lpss
->
styleNew
);
...
@@ -9481,8 +9482,26 @@ static INT LISTVIEW_StyleChanged(LISTVIEW_INFO *infoPtr, WPARAM wStyleType,
...
@@ -9481,8 +9482,26 @@ static INT LISTVIEW_StyleChanged(LISTVIEW_INFO *infoPtr, WPARAM wStyleType,
}
}
if
(
uNewView
==
LVS_REPORT
)
if
(
uNewView
==
LVS_REPORT
)
ShowWindow
(
infoPtr
->
hwndHeader
,
(
lpss
->
styleNew
&
LVS_NOCOLUMNHEADER
)
?
SW_HIDE
:
SW_SHOWNORMAL
);
{
if
((
lpss
->
styleOld
^
lpss
->
styleNew
)
&
LVS_NOCOLUMNHEADER
)
{
if
(
lpss
->
styleNew
&
LVS_NOCOLUMNHEADER
)
{
/* Turn off the header control */
style
=
GetWindowLongW
(
infoPtr
->
hwndHeader
,
GWL_STYLE
);
TRACE
(
"Hide header control, was 0x%08x
\n
"
,
style
);
SetWindowLongW
(
infoPtr
->
hwndHeader
,
GWL_STYLE
,
style
|
HDS_HIDDEN
);
}
else
{
/* Turn on the header control */
if
((
style
=
GetWindowLongW
(
infoPtr
->
hwndHeader
,
GWL_STYLE
))
&
HDS_HIDDEN
)
{
TRACE
(
"Show header control, was 0x%08x
\n
"
,
style
);
SetWindowLongW
(
infoPtr
->
hwndHeader
,
GWL_STYLE
,
(
style
&
~
HDS_HIDDEN
)
|
WS_VISIBLE
);
}
}
}
}
if
(
(
uNewView
==
LVS_ICON
||
uNewView
==
LVS_SMALLICON
)
&&
if
(
(
uNewView
==
LVS_ICON
||
uNewView
==
LVS_SMALLICON
)
&&
(
uNewView
!=
uOldView
||
((
lpss
->
styleNew
^
lpss
->
styleOld
)
&
LVS_ALIGNMASK
))
)
(
uNewView
!=
uOldView
||
((
lpss
->
styleNew
^
lpss
->
styleOld
)
&
LVS_ALIGNMASK
))
)
LISTVIEW_Arrange
(
infoPtr
,
LVA_DEFAULT
);
LISTVIEW_Arrange
(
infoPtr
,
LVA_DEFAULT
);
...
...
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