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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
header.c
dlls/comctl32/header.c
+19
-11
No files found.
dlls/comctl32/header.c
View file @
25d916e7
...
...
@@ -329,18 +329,21 @@ HEADER_DrawItem (HEADER_INFO *infoPtr, HDC hdc, INT iItem, BOOL bHotTrack, LRESU
}
else
{
HBRUSH
hbr
;
if
(
infoPtr
->
dwStyle
&
HDS_BUTTONS
)
{
if
(
phdi
->
bDown
)
{
DrawEdge
(
hdc
,
&
r
,
BDR_RAISEDOUTER
,
BF_RECT
|
BF_FLAT
|
BF_MIDDLE
|
BF_ADJUST
);
if
(
!
(
infoPtr
->
dwStyle
&
HDS_FLAT
))
{
if
(
infoPtr
->
dwStyle
&
HDS_BUTTONS
)
{
if
(
phdi
->
bDown
)
{
DrawEdge
(
hdc
,
&
r
,
BDR_RAISEDOUTER
,
BF_RECT
|
BF_FLAT
|
BF_MIDDLE
|
BF_ADJUST
);
}
else
DrawEdge
(
hdc
,
&
r
,
EDGE_RAISED
,
BF_RECT
|
BF_SOFT
|
BF_MIDDLE
|
BF_ADJUST
);
}
else
DrawEdge
(
hdc
,
&
r
,
EDGE_RAISED
,
BF_RECT
|
BF_SOFT
|
BF_MIDDLE
|
BF_ADJUST
);
DrawEdge
(
hdc
,
&
r
,
EDGE_ETCHED
,
BF_BOTTOM
|
BF_RIGHT
|
BF_ADJUST
);
}
else
DrawEdge
(
hdc
,
&
r
,
EDGE_ETCHED
,
BF_BOTTOM
|
BF_RIGHT
|
BF_ADJUST
);
hbr
=
CreateSolidBrush
(
GetBkColor
(
hdc
));
FillRect
(
hdc
,
&
r
,
hbr
);
...
...
@@ -547,14 +550,19 @@ HEADER_Refresh (HEADER_INFO *infoPtr, HDC hdc)
if
(
theme
!=
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
)
DrawEdge
(
hdc
,
&
rcRest
,
EDGE_RAISED
,
BF_TOP
|
BF_LEFT
|
BF_BOTTOM
|
BF_SOFT
|
BF_MIDDLE
);
else
DrawEdge
(
hdc
,
&
rcRest
,
EDGE_ETCHED
,
BF_BOTTOM
|
BF_MIDDLE
);
}
}
if
(
infoPtr
->
iHotDivider
!=
-
1
)
HEADER_DrawHotDivider
(
infoPtr
,
hdc
);
...
...
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