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
25d916e7
Commit
25d916e7
authored
Jun 21, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/header: Add support for HDS_FLAT style.
parent
85224d7f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
header.c
dlls/comctl32/header.c
+9
-1
No files found.
dlls/comctl32/header.c
View file @
25d916e7
...
@@ -330,6 +330,8 @@ HEADER_DrawItem (HEADER_INFO *infoPtr, HDC hdc, INT iItem, BOOL bHotTrack, LRESU
...
@@ -330,6 +330,8 @@ HEADER_DrawItem (HEADER_INFO *infoPtr, HDC hdc, INT iItem, BOOL bHotTrack, LRESU
else
{
else
{
HBRUSH
hbr
;
HBRUSH
hbr
;
if
(
!
(
infoPtr
->
dwStyle
&
HDS_FLAT
))
{
if
(
infoPtr
->
dwStyle
&
HDS_BUTTONS
)
{
if
(
infoPtr
->
dwStyle
&
HDS_BUTTONS
)
{
if
(
phdi
->
bDown
)
{
if
(
phdi
->
bDown
)
{
DrawEdge
(
hdc
,
&
r
,
BDR_RAISEDOUTER
,
DrawEdge
(
hdc
,
&
r
,
BDR_RAISEDOUTER
,
...
@@ -341,6 +343,7 @@ HEADER_DrawItem (HEADER_INFO *infoPtr, HDC hdc, INT iItem, BOOL bHotTrack, LRESU
...
@@ -341,6 +343,7 @@ HEADER_DrawItem (HEADER_INFO *infoPtr, HDC hdc, INT iItem, BOOL bHotTrack, LRESU
}
}
else
else
DrawEdge
(
hdc
,
&
r
,
EDGE_ETCHED
,
BF_BOTTOM
|
BF_RIGHT
|
BF_ADJUST
);
DrawEdge
(
hdc
,
&
r
,
EDGE_ETCHED
,
BF_BOTTOM
|
BF_RIGHT
|
BF_ADJUST
);
}
hbr
=
CreateSolidBrush
(
GetBkColor
(
hdc
));
hbr
=
CreateSolidBrush
(
GetBkColor
(
hdc
));
FillRect
(
hdc
,
&
r
,
hbr
);
FillRect
(
hdc
,
&
r
,
hbr
);
...
@@ -547,7 +550,12 @@ HEADER_Refresh (HEADER_INFO *infoPtr, HDC hdc)
...
@@ -547,7 +550,12 @@ HEADER_Refresh (HEADER_INFO *infoPtr, HDC hdc)
if
(
theme
!=
NULL
)
{
if
(
theme
!=
NULL
)
{
DrawThemeBackground
(
theme
,
hdc
,
HP_HEADERITEM
,
HIS_NORMAL
,
&
rcRest
,
NULL
);
DrawThemeBackground
(
theme
,
hdc
,
HP_HEADERITEM
,
HIS_NORMAL
,
&
rcRest
,
NULL
);
}
}
else
{
else
if
(
infoPtr
->
dwStyle
&
HDS_FLAT
)
{
hbrBk
=
GetSysColorBrush
(
COLOR_3DFACE
);
FillRect
(
hdc
,
&
rcRest
,
hbrBk
);
}
else
{
if
(
infoPtr
->
dwStyle
&
HDS_BUTTONS
)
if
(
infoPtr
->
dwStyle
&
HDS_BUTTONS
)
DrawEdge
(
hdc
,
&
rcRest
,
EDGE_RAISED
,
BF_TOP
|
BF_LEFT
|
BF_BOTTOM
|
BF_SOFT
|
BF_MIDDLE
);
DrawEdge
(
hdc
,
&
rcRest
,
EDGE_RAISED
,
BF_TOP
|
BF_LEFT
|
BF_BOTTOM
|
BF_SOFT
|
BF_MIDDLE
);
else
else
...
...
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