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
2b72ae6e
Commit
2b72ae6e
authored
May 18, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/status: Use cached colors instead of GetSysColor for Status.
parent
109a10c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
status.c
dlls/comctl32/status.c
+7
-3
No files found.
dlls/comctl32/status.c
View file @
2b72ae6e
...
...
@@ -167,7 +167,7 @@ STATUSBAR_DrawSizeGrip (HTHEME theme, HDC hdc, LPRECT lpRect)
pt
.
x
=
lpRect
->
right
-
1
;
pt
.
y
=
lpRect
->
bottom
-
1
;
hPenFace
=
CreatePen
(
PS_SOLID
,
1
,
GetSysColor
(
COLOR_3DFACE
)
);
hPenFace
=
CreatePen
(
PS_SOLID
,
1
,
comctl32_color
.
clr3dFace
);
hOldPen
=
SelectObject
(
hdc
,
hPenFace
);
MoveToEx
(
hdc
,
pt
.
x
-
12
,
pt
.
y
,
NULL
);
LineTo
(
hdc
,
pt
.
x
,
pt
.
y
);
...
...
@@ -176,7 +176,7 @@ STATUSBAR_DrawSizeGrip (HTHEME theme, HDC hdc, LPRECT lpRect)
pt
.
x
--
;
pt
.
y
--
;
hPenShadow
=
CreatePen
(
PS_SOLID
,
1
,
GetSysColor
(
COLOR_3DSHADOW
)
);
hPenShadow
=
CreatePen
(
PS_SOLID
,
1
,
comctl32_color
.
clr3dShadow
);
SelectObject
(
hdc
,
hPenShadow
);
for
(
i
=
1
;
i
<
11
;
i
+=
4
)
{
MoveToEx
(
hdc
,
pt
.
x
-
i
,
pt
.
y
,
NULL
);
...
...
@@ -186,7 +186,7 @@ STATUSBAR_DrawSizeGrip (HTHEME theme, HDC hdc, LPRECT lpRect)
LineTo
(
hdc
,
pt
.
x
+
1
,
pt
.
y
-
i
-
2
);
}
hPenHighlight
=
CreatePen
(
PS_SOLID
,
1
,
GetSysColor
(
COLOR_3DHIGHLIGHT
)
);
hPenHighlight
=
CreatePen
(
PS_SOLID
,
1
,
comctl32_color
.
clr3dHilight
);
SelectObject
(
hdc
,
hPenHighlight
);
for
(
i
=
3
;
i
<
13
;
i
+=
4
)
{
MoveToEx
(
hdc
,
pt
.
x
-
i
,
pt
.
y
,
NULL
);
...
...
@@ -1313,6 +1313,10 @@ StatusWindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
if
(
STATUSBAR_WMSize
(
infoPtr
,
(
WORD
)
wParam
))
return
0
;
return
DefWindowProcW
(
hwnd
,
msg
,
wParam
,
lParam
);
case
WM_SYSCOLORCHANGE
:
COMCTL32_RefreshSysColors
();
return
0
;
case
WM_THEMECHANGED
:
return
theme_changed
(
infoPtr
);
...
...
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