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
cbe79616
Commit
cbe79616
authored
Jul 19, 2004
by
Filip Navara
Committed by
Alexandre Julliard
Jul 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use system metrics values in TOOLBAR_DrawPattern instead of hardcoded
values.
parent
62a48076
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
toolbar.c
dlls/comctl32/toolbar.c
+4
-1
No files found.
dlls/comctl32/toolbar.c
View file @
cbe79616
...
@@ -632,9 +632,12 @@ TOOLBAR_DrawPattern (LPRECT lpRect, NMTBCUSTOMDRAW *tbcd)
...
@@ -632,9 +632,12 @@ TOOLBAR_DrawPattern (LPRECT lpRect, NMTBCUSTOMDRAW *tbcd)
COLORREF
clrBkOld
;
COLORREF
clrBkOld
;
INT
cx
=
lpRect
->
right
-
lpRect
->
left
;
INT
cx
=
lpRect
->
right
-
lpRect
->
left
;
INT
cy
=
lpRect
->
bottom
-
lpRect
->
top
;
INT
cy
=
lpRect
->
bottom
-
lpRect
->
top
;
INT
cxEdge
=
GetSystemMetrics
(
SM_CXEDGE
);
INT
cyEdge
=
GetSystemMetrics
(
SM_CYEDGE
);
clrTextOld
=
SetTextColor
(
hdc
,
tbcd
->
clrBtnHighlight
);
clrTextOld
=
SetTextColor
(
hdc
,
tbcd
->
clrBtnHighlight
);
clrBkOld
=
SetBkColor
(
hdc
,
tbcd
->
clrBtnFace
);
clrBkOld
=
SetBkColor
(
hdc
,
tbcd
->
clrBtnFace
);
PatBlt
(
hdc
,
lpRect
->
left
+
2
,
lpRect
->
top
+
2
,
cx
-
4
,
cy
-
4
,
PATCOPY
);
PatBlt
(
hdc
,
lpRect
->
left
+
cxEdge
,
lpRect
->
top
+
cyEdge
,
cx
-
(
2
*
cxEdge
),
cy
-
(
2
*
cyEdge
),
PATCOPY
);
SetBkColor
(
hdc
,
clrBkOld
);
SetBkColor
(
hdc
,
clrBkOld
);
SetTextColor
(
hdc
,
clrTextOld
);
SetTextColor
(
hdc
,
clrTextOld
);
SelectObject
(
hdc
,
hbr
);
SelectObject
(
hdc
,
hbr
);
...
...
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