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
f875314f
Commit
f875314f
authored
May 17, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/header: Use cached colors instead of querying them again.
parent
e6a3807e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
header.c
dlls/comctl32/header.c
+6
-2
No files found.
dlls/comctl32/header.c
View file @
f875314f
...
@@ -300,7 +300,7 @@ HEADER_DrawItem (HEADER_INFO *infoPtr, HDC hdc, INT iItem, BOOL bHotTrack, LRESU
...
@@ -300,7 +300,7 @@ HEADER_DrawItem (HEADER_INFO *infoPtr, HDC hdc, INT iItem, BOOL bHotTrack, LRESU
/* Set the colors before sending NM_CUSTOMDRAW so that it can change them */
/* Set the colors before sending NM_CUSTOMDRAW so that it can change them */
SetTextColor
(
hdc
,
(
bHotTrack
&&
!
theme
)
?
COLOR_HIGHLIGHT
:
COLOR_BTNTEXT
);
SetTextColor
(
hdc
,
(
bHotTrack
&&
!
theme
)
?
COLOR_HIGHLIGHT
:
COLOR_BTNTEXT
);
SetBkColor
(
hdc
,
GetSysColor
(
COLOR_3DFACE
)
);
SetBkColor
(
hdc
,
comctl32_color
.
clr3dFace
);
if
(
lCDFlags
&
CDRF_NOTIFYITEMDRAW
&&
!
(
phdi
->
fmt
&
HDF_OWNERDRAW
))
if
(
lCDFlags
&
CDRF_NOTIFYITEMDRAW
&&
!
(
phdi
->
fmt
&
HDF_OWNERDRAW
))
{
{
...
@@ -497,7 +497,7 @@ HEADER_DrawHotDivider(const HEADER_INFO *infoPtr, HDC hdc)
...
@@ -497,7 +497,7 @@ HEADER_DrawHotDivider(const HEADER_INFO *infoPtr, HDC hdc)
RECT
r
;
RECT
r
;
HEADER_GetHotDividerRect
(
infoPtr
,
&
r
);
HEADER_GetHotDividerRect
(
infoPtr
,
&
r
);
brush
=
CreateSolidBrush
(
GetSysColor
(
COLOR_HIGHLIGHT
)
);
brush
=
CreateSolidBrush
(
comctl32_color
.
clrHighlight
);
FillRect
(
hdc
,
&
r
,
brush
);
FillRect
(
hdc
,
&
r
,
brush
);
DeleteObject
(
brush
);
DeleteObject
(
brush
);
}
}
...
@@ -2067,6 +2067,10 @@ HEADER_WindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
...
@@ -2067,6 +2067,10 @@ HEADER_WindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
case
WM_SETREDRAW
:
case
WM_SETREDRAW
:
return
HEADER_SetRedraw
(
infoPtr
,
wParam
,
lParam
);
return
HEADER_SetRedraw
(
infoPtr
,
wParam
,
lParam
);
case
WM_SYSCOLORCHANGE
:
COMCTL32_RefreshSysColors
();
return
0
;
default:
default:
if
((
msg
>=
WM_USER
)
&&
(
msg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
msg
))
if
((
msg
>=
WM_USER
)
&&
(
msg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
msg
))
ERR
(
"unknown msg %04x wp=%04lx lp=%08lx
\n
"
,
ERR
(
"unknown msg %04x wp=%04lx lp=%08lx
\n
"
,
...
...
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