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
a2f309a3
Commit
a2f309a3
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/syslink: Use cached colors for SysLink.
parent
745f4815
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
syslink.c
dlls/comctl32/syslink.c
+8
-4
No files found.
dlls/comctl32/syslink.c
View file @
a2f309a3
...
...
@@ -831,7 +831,7 @@ static LRESULT SYSLINK_Draw (const SYSLINK_INFO *infoPtr, HDC hdc)
hOldFont
=
SelectObject
(
hdc
,
infoPtr
->
Font
);
OldTextColor
=
SetTextColor
(
hdc
,
infoPtr
->
TextColor
);
OldBkColor
=
SetBkColor
(
hdc
,
GetSysColor
(
COLOR_BTNFACE
)
);
OldBkColor
=
SetBkColor
(
hdc
,
comctl32_color
.
clrBtnFace
);
GetClientRect
(
infoPtr
->
Self
,
&
rc
);
rc
.
right
-=
SL_RIGHTMARGIN
+
SL_LEFTMARGIN
;
...
...
@@ -1729,9 +1729,9 @@ static LRESULT WINAPI SysLinkWindowProc(HWND hwnd, UINT message,
infoPtr
->
Items
=
NULL
;
infoPtr
->
HasFocus
=
FALSE
;
infoPtr
->
MouseDownID
=
-
1
;
infoPtr
->
TextColor
=
GetSysColor
(
COLOR_WINDOWTEXT
)
;
infoPtr
->
LinkColor
=
GetSysColor
(
COLOR_HIGHLIGHT
)
;
infoPtr
->
VisitedColor
=
GetSysColor
(
COLOR_HIGHLIGHT
)
;
infoPtr
->
TextColor
=
comctl32_color
.
clrWindowText
;
infoPtr
->
LinkColor
=
comctl32_color
.
clrHighlight
;
infoPtr
->
VisitedColor
=
comctl32_color
.
clrHighlight
;
infoPtr
->
BreakChar
=
' '
;
TRACE
(
"SysLink Ctrl creation, hwnd=%p
\n
"
,
hwnd
);
SYSLINK_SetText
(
infoPtr
,
((
LPCREATESTRUCTW
)
lParam
)
->
lpszName
);
...
...
@@ -1746,6 +1746,10 @@ static LRESULT WINAPI SysLinkWindowProc(HWND hwnd, UINT message,
Free
(
infoPtr
);
return
0
;
case
WM_SYSCOLORCHANGE
:
COMCTL32_RefreshSysColors
();
return
0
;
default:
HandleDefaultMessage:
if
((
message
>=
WM_USER
)
&&
(
message
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
message
))
...
...
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