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
cf67786e
Commit
cf67786e
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/monthcal: Use cached colors instead of GetSysColor for MonthCal.
parent
8806b1e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
monthcal.c
dlls/comctl32/monthcal.c
+11
-7
No files found.
dlls/comctl32/monthcal.c
View file @
cf67786e
...
...
@@ -456,7 +456,7 @@ static void MONTHCAL_Refresh(MONTHCAL_INFO *infoPtr, HDC hdc, const PAINTSTRUCT
SYSTEMTIME
localtime
;
int
startofprescal
;
oldTextColor
=
SetTextColor
(
hdc
,
GetSysColor
(
COLOR_WINDOWTEXT
)
);
oldTextColor
=
SetTextColor
(
hdc
,
comctl32_color
.
clrWindowText
);
/* fill background */
hbr
=
CreateSolidBrush
(
infoPtr
->
bk
);
...
...
@@ -1926,12 +1926,12 @@ MONTHCAL_Create(HWND hwnd, LPARAM lParam)
infoPtr
->
monthRange
=
3
;
infoPtr
->
monthdayState
=
Alloc
(
infoPtr
->
monthRange
*
sizeof
(
MONTHDAYSTATE
));
infoPtr
->
titlebk
=
GetSysColor
(
COLOR_ACTIVECAPTION
)
;
infoPtr
->
titletxt
=
GetSysColor
(
COLOR_WINDOW
)
;
infoPtr
->
monthbk
=
GetSysColor
(
COLOR_WINDOW
)
;
infoPtr
->
trailingtxt
=
GetSysColor
(
COLOR_GRAYTEXT
)
;
infoPtr
->
bk
=
GetSysColor
(
COLOR_WINDOW
)
;
infoPtr
->
txt
=
GetSysColor
(
COLOR_WINDOWTEXT
)
;
infoPtr
->
titlebk
=
comctl32_color
.
clrActiveCaption
;
infoPtr
->
titletxt
=
comctl32_color
.
clrWindow
;
infoPtr
->
monthbk
=
comctl32_color
.
clrWindow
;
infoPtr
->
trailingtxt
=
comctl32_color
.
clrGrayText
;
infoPtr
->
bk
=
comctl32_color
.
clrWindow
;
infoPtr
->
txt
=
comctl32_color
.
clrWindowText
;
/* set the current day for highlighing */
infoPtr
->
minSel
.
wDay
=
infoPtr
->
todaysDate
.
wDay
;
...
...
@@ -2082,6 +2082,10 @@ MONTHCAL_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_DESTROY
:
return
MONTHCAL_Destroy
(
infoPtr
);
case
WM_SYSCOLORCHANGE
:
COMCTL32_RefreshSysColors
();
return
0
;
default:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
))
ERR
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
...
...
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