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
229d4e21
Commit
229d4e21
authored
Sep 20, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/monthcal: Fix today date box painting.
parent
57a70f49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
monthcal.c
dlls/comctl32/monthcal.c
+11
-5
No files found.
dlls/comctl32/monthcal.c
View file @
229d4e21
...
...
@@ -987,14 +987,20 @@ static void MONTHCAL_PaintTodayTitle(const MONTHCAL_INFO *infoPtr, HDC hdc, cons
/* today mark + focus */
static
void
MONTHCAL_PaintFocusAndCircle
(
const
MONTHCAL_INFO
*
infoPtr
,
HDC
hdc
,
const
PAINTSTRUCT
*
ps
)
{
if
((
infoPtr
->
minSel
.
wMonth
==
infoPtr
->
todaysDate
.
wMonth
)
&&
(
infoPtr
->
minSel
.
wYear
==
infoPtr
->
todaysDate
.
wYear
)
&&
!
(
infoPtr
->
dwStyle
&
MCS_NOTODAYCIRCLE
))
/* circle today date if only it's in fully visible month */
if
(
!
(
infoPtr
->
dwStyle
&
MCS_NOTODAYCIRCLE
))
{
MONTHCAL_CircleDay
(
infoPtr
,
hdc
,
&
infoPtr
->
todaysDate
);
INT
i
;
for
(
i
=
0
;
i
<
MONTHCAL_GetCalCount
(
infoPtr
);
i
++
)
if
(
!
MONTHCAL_CompareMonths
(
&
infoPtr
->
todaysDate
,
&
infoPtr
->
calendars
[
i
].
month
))
{
MONTHCAL_CircleDay
(
infoPtr
,
hdc
,
&
infoPtr
->
todaysDate
);
break
;
}
}
if
(
!
MONTHCAL_IsDateEqual
(
&
infoPtr
->
focusedSel
,
&
st_null
))
if
(
!
MONTHCAL_IsDateEqual
(
&
infoPtr
->
focusedSel
,
&
st_null
))
{
RECT
r
;
MONTHCAL_GetDayRect
(
infoPtr
,
&
infoPtr
->
focusedSel
,
&
r
,
-
1
);
...
...
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