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
8caeb2f7
Commit
8caeb2f7
authored
Aug 08, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/monthcal: Fix assumption about a single calendar for minimal rectangle calculation.
parent
197a7164
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
monthcal.c
dlls/comctl32/monthcal.c
+9
-11
No files found.
dlls/comctl32/monthcal.c
View file @
8caeb2f7
...
...
@@ -1096,28 +1096,26 @@ static void MONTHCAL_Refresh(MONTHCAL_INFO *infoPtr, HDC hdc, const PAINTSTRUCT
}
static
LRESULT
MONTHCAL_GetMinReqRect
(
const
MONTHCAL_INFO
*
infoPtr
,
LPRECT
lpR
ect
)
MONTHCAL_GetMinReqRect
(
const
MONTHCAL_INFO
*
infoPtr
,
RECT
*
r
ect
)
{
TRACE
(
"rect %p
\n
"
,
lpR
ect
);
TRACE
(
"rect %p
\n
"
,
r
ect
);
if
(
!
lpR
ect
)
return
FALSE
;
if
(
!
r
ect
)
return
FALSE
;
lpRect
->
left
=
infoPtr
->
calendars
[
0
].
title
.
left
;
lpRect
->
top
=
infoPtr
->
calendars
[
0
].
title
.
top
;
lpRect
->
right
=
infoPtr
->
calendars
[
0
].
title
.
right
;
lpRect
->
bottom
=
infoPtr
->
todayrect
.
bottom
;
*
rect
=
infoPtr
->
calendars
[
0
].
title
;
rect
->
bottom
=
infoPtr
->
calendars
[
0
].
days
.
bottom
+
infoPtr
->
todayrect
.
bottom
-
infoPtr
->
todayrect
.
top
;
AdjustWindowRect
(
lpR
ect
,
infoPtr
->
dwStyle
,
FALSE
);
AdjustWindowRect
(
r
ect
,
infoPtr
->
dwStyle
,
FALSE
);
/* minimal rectangle is zero based */
OffsetRect
(
lpRect
,
-
lpRect
->
left
,
-
lpR
ect
->
top
);
OffsetRect
(
rect
,
-
rect
->
left
,
-
r
ect
->
top
);
TRACE
(
"%s
\n
"
,
wine_dbgstr_rect
(
lpR
ect
));
TRACE
(
"%s
\n
"
,
wine_dbgstr_rect
(
r
ect
));
return
TRUE
;
}
static
LRESULT
MONTHCAL_GetColor
(
const
MONTHCAL_INFO
*
infoPtr
,
INT
index
)
{
...
...
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