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
1d5cc6ef
Commit
1d5cc6ef
authored
Feb 11, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/static: Reuse existing system colors helper.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
287c5a25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
static.c
dlls/comctl32/static.c
+7
-17
No files found.
dlls/comctl32/static.c
View file @
1d5cc6ef
...
...
@@ -55,8 +55,6 @@ static void STATIC_PaintBitmapfn( HWND hwnd, HDC hdc, DWORD style );
static
void
STATIC_PaintEnhMetafn
(
HWND
hwnd
,
HDC
hdc
,
DWORD
style
);
static
void
STATIC_PaintEtchedfn
(
HWND
hwnd
,
HDC
hdc
,
DWORD
style
);
static
COLORREF
color_3dshadow
,
color_3ddkshadow
,
color_3dhighlight
;
/* offsets for GetWindowLong for static private information */
#define HFONT_GWL_OFFSET 0
#define HICON_GWL_OFFSET (sizeof(HFONT))
...
...
@@ -292,13 +290,6 @@ static HBRUSH STATIC_SendWmCtlColorStatic(HWND hwnd, HDC hdc)
return
hBrush
;
}
static
VOID
STATIC_InitColours
(
void
)
{
color_3ddkshadow
=
GetSysColor
(
COLOR_3DDKSHADOW
);
color_3dshadow
=
GetSysColor
(
COLOR_3DSHADOW
);
color_3dhighlight
=
GetSysColor
(
COLOR_3DHIGHLIGHT
);
}
/***********************************************************************
* hasTextStyle
*
...
...
@@ -336,7 +327,6 @@ static LRESULT CALLBACK STATIC_WindowProc( HWND hwnd, UINT uMsg, WPARAM wParam,
ERR
(
"Unknown style 0x%02x
\n
"
,
style
);
return
-
1
;
}
STATIC_InitColours
();
break
;
case
WM_NCDESTROY
:
...
...
@@ -391,7 +381,7 @@ static LRESULT CALLBACK STATIC_WindowProc( HWND hwnd, UINT uMsg, WPARAM wParam,
break
;
case
WM_SYSCOLORCHANGE
:
STATIC_InitColou
rs
();
COMCTL32_RefreshSysColo
rs
();
STATIC_TryPaintFcn
(
hwnd
,
full_style
);
break
;
...
...
@@ -644,27 +634,27 @@ static void STATIC_PaintRectfn( HWND hwnd, HDC hdc, DWORD style )
switch
(
style
&
SS_TYPEMASK
)
{
case
SS_BLACKRECT
:
hBrush
=
CreateSolidBrush
(
co
lor_3ddks
hadow
);
hBrush
=
CreateSolidBrush
(
co
mctl32_color
.
clr3dDkS
hadow
);
FillRect
(
hdc
,
&
rc
,
hBrush
);
break
;
case
SS_GRAYRECT
:
hBrush
=
CreateSolidBrush
(
co
lor_3ds
hadow
);
hBrush
=
CreateSolidBrush
(
co
mctl32_color
.
clr3dS
hadow
);
FillRect
(
hdc
,
&
rc
,
hBrush
);
break
;
case
SS_WHITERECT
:
hBrush
=
CreateSolidBrush
(
co
lor_3dhigh
light
);
hBrush
=
CreateSolidBrush
(
co
mctl32_color
.
clr3dHi
light
);
FillRect
(
hdc
,
&
rc
,
hBrush
);
break
;
case
SS_BLACKFRAME
:
hBrush
=
CreateSolidBrush
(
co
lor_3ddks
hadow
);
hBrush
=
CreateSolidBrush
(
co
mctl32_color
.
clr3dDkS
hadow
);
FrameRect
(
hdc
,
&
rc
,
hBrush
);
break
;
case
SS_GRAYFRAME
:
hBrush
=
CreateSolidBrush
(
co
lor_3ds
hadow
);
hBrush
=
CreateSolidBrush
(
co
mctl32_color
.
clr3dS
hadow
);
FrameRect
(
hdc
,
&
rc
,
hBrush
);
break
;
case
SS_WHITEFRAME
:
hBrush
=
CreateSolidBrush
(
co
lor_3dhigh
light
);
hBrush
=
CreateSolidBrush
(
co
mctl32_color
.
clr3dHi
light
);
FrameRect
(
hdc
,
&
rc
,
hBrush
);
break
;
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