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
5bded560
Commit
5bded560
authored
Jan 04, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 04, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix colours used for SS_*RECT, SS_*FRAME.
parent
20322840
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
static.c
dlls/user/static.c
+16
-14
No files found.
dlls/user/static.c
View file @
5bded560
...
@@ -67,7 +67,7 @@ static void STATIC_PaintEtchedfn( HWND hwnd, HDC hdc, DWORD style );
...
@@ -67,7 +67,7 @@ static void STATIC_PaintEtchedfn( HWND hwnd, HDC hdc, DWORD style );
static
LRESULT
WINAPI
StaticWndProcA
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
StaticWndProcA
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
StaticWndProcW
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
StaticWndProcW
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
COLORREF
color_
windowframe
,
color_background
,
color_window
;
static
COLORREF
color_
3dshadow
,
color_3ddkshadow
,
color_3dhighlight
;
/* offsets for GetWindowLong for static private information */
/* offsets for GetWindowLong for static private information */
#define HFONT_GWL_OFFSET 0
#define HFONT_GWL_OFFSET 0
...
@@ -239,6 +239,13 @@ static VOID STATIC_TryPaintFcn(HWND hwnd, LONG full_style)
...
@@ -239,6 +239,13 @@ static VOID STATIC_TryPaintFcn(HWND hwnd, LONG full_style)
}
}
}
}
static
VOID
STATIC_InitColours
()
{
color_3ddkshadow
=
GetSysColor
(
COLOR_3DDKSHADOW
);
color_3dshadow
=
GetSysColor
(
COLOR_3DSHADOW
);
color_3dhighlight
=
GetSysColor
(
COLOR_3DHIGHLIGHT
);
}
/***********************************************************************
/***********************************************************************
* StaticWndProc_common
* StaticWndProc_common
*/
*/
...
@@ -257,10 +264,7 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
...
@@ -257,10 +264,7 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
ERR
(
"Unknown style 0x%02lx
\n
"
,
style
);
ERR
(
"Unknown style 0x%02lx
\n
"
,
style
);
return
-
1
;
return
-
1
;
}
}
/* initialise colours */
STATIC_InitColours
();
color_windowframe
=
GetSysColor
(
COLOR_WINDOWFRAME
);
color_background
=
GetSysColor
(
COLOR_BACKGROUND
);
color_window
=
GetSysColor
(
COLOR_WINDOW
);
break
;
break
;
case
WM_NCDESTROY
:
case
WM_NCDESTROY
:
...
@@ -293,9 +297,7 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
...
@@ -293,9 +297,7 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
break
;
break
;
case
WM_SYSCOLORCHANGE
:
case
WM_SYSCOLORCHANGE
:
color_windowframe
=
GetSysColor
(
COLOR_WINDOWFRAME
);
STATIC_InitColours
();
color_background
=
GetSysColor
(
COLOR_BACKGROUND
);
color_window
=
GetSysColor
(
COLOR_WINDOW
);
InvalidateRect
(
hwnd
,
NULL
,
TRUE
);
InvalidateRect
(
hwnd
,
NULL
,
TRUE
);
break
;
break
;
...
@@ -543,27 +545,27 @@ static void STATIC_PaintRectfn( HWND hwnd, HDC hdc, DWORD style )
...
@@ -543,27 +545,27 @@ static void STATIC_PaintRectfn( HWND hwnd, HDC hdc, DWORD style )
switch
(
style
&
SS_TYPEMASK
)
switch
(
style
&
SS_TYPEMASK
)
{
{
case
SS_BLACKRECT
:
case
SS_BLACKRECT
:
hBrush
=
CreateSolidBrush
(
color_
windowframe
);
hBrush
=
CreateSolidBrush
(
color_
3ddkshadow
);
FillRect
(
hdc
,
&
rc
,
hBrush
);
FillRect
(
hdc
,
&
rc
,
hBrush
);
break
;
break
;
case
SS_GRAYRECT
:
case
SS_GRAYRECT
:
hBrush
=
CreateSolidBrush
(
color_
background
);
hBrush
=
CreateSolidBrush
(
color_
3dshadow
);
FillRect
(
hdc
,
&
rc
,
hBrush
);
FillRect
(
hdc
,
&
rc
,
hBrush
);
break
;
break
;
case
SS_WHITERECT
:
case
SS_WHITERECT
:
hBrush
=
CreateSolidBrush
(
color_
window
);
hBrush
=
CreateSolidBrush
(
color_
3dhighlight
);
FillRect
(
hdc
,
&
rc
,
hBrush
);
FillRect
(
hdc
,
&
rc
,
hBrush
);
break
;
break
;
case
SS_BLACKFRAME
:
case
SS_BLACKFRAME
:
hBrush
=
CreateSolidBrush
(
color_
windowframe
);
hBrush
=
CreateSolidBrush
(
color_
3ddkshadow
);
FrameRect
(
hdc
,
&
rc
,
hBrush
);
FrameRect
(
hdc
,
&
rc
,
hBrush
);
break
;
break
;
case
SS_GRAYFRAME
:
case
SS_GRAYFRAME
:
hBrush
=
CreateSolidBrush
(
color_
background
);
hBrush
=
CreateSolidBrush
(
color_
3dshadow
);
FrameRect
(
hdc
,
&
rc
,
hBrush
);
FrameRect
(
hdc
,
&
rc
,
hBrush
);
break
;
break
;
case
SS_WHITEFRAME
:
case
SS_WHITEFRAME
:
hBrush
=
CreateSolidBrush
(
color_
window
);
hBrush
=
CreateSolidBrush
(
color_
3dhighlight
);
FrameRect
(
hdc
,
&
rc
,
hBrush
);
FrameRect
(
hdc
,
&
rc
,
hBrush
);
break
;
break
;
default:
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