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
b43639e7
Commit
b43639e7
authored
Jul 08, 2000
by
Chris Morgan
Committed by
Alexandre Julliard
Jul 08, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed background redrawing when control is covered. Fixed a really
dumb mistake I made with border drawing many patches ago. Fixed offset by 1 alignment issues.
parent
62eedafb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
16 deletions
+7
-16
monthcal.c
dlls/comctl32/monthcal.c
+7
-16
No files found.
dlls/comctl32/monthcal.c
View file @
b43639e7
...
...
@@ -342,27 +342,23 @@ static void MONTHCAL_Refresh(HWND hwnd, HDC hdc, PAINTSTRUCT* ps)
const
char
*
thisMonthtxt
;
COLORREF
oldTextColor
,
oldBkColor
;
DWORD
dwStyle
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
BOOL
prssed
;
RECT
rcTemp
;
RECT
rcDay
;
/* used in MONTHCAL_CalcDayRect() */
oldTextColor
=
SetTextColor
(
hdc
,
GetSysColor
(
COLOR_WINDOWTEXT
));
/* draw control edge */
if
(
EqualRect
(
&
(
ps
->
rcPaint
),
rcClient
))
{
hbr
=
CreateSolidBrush
(
RGB
(
255
,
255
,
255
));
/* fill background */
hbr
=
CreateSolidBrush
(
infoPtr
->
bk
);
FillRect
(
hdc
,
rcClient
,
hbr
);
DrawEdge
(
hdc
,
rcClient
,
EDGE_SUNKEN
,
BF_RECT
);
DeleteObject
(
hbr
);
prssed
=
FALSE
;
}
/* draw header */
if
(
IntersectRect
(
&
rcTemp
,
&
(
ps
->
rcPaint
),
title
))
{
hbr
=
CreateSolidBrush
(
infoPtr
->
titlebk
);
FillRect
(
hdc
,
title
,
hbr
);
DeleteObject
(
hbr
);
}
/* if the previous button is pressed draw it depressed */
...
...
@@ -419,7 +415,6 @@ static void MONTHCAL_Refresh(HWND hwnd, HDC hdc, PAINTSTRUCT* ps)
titlemonth
->
right
=
titlemonth
->
left
+
size
.
cx
;
titleyear
->
right
=
titlemonth
->
right
;
/* draw line under day abbreviatons */
if
(
dwStyle
&
MCS_WEEKNUMBERS
)
...
...
@@ -1530,10 +1525,6 @@ static void MONTHCAL_UpdateSize(HWND hwnd)
rcDraw
->
top
=
rcClient
->
top
;
rcDraw
->
bottom
=
rcClient
->
bottom
;
/* use DrawEdge to adjust the size of rcClient such that we */
/* do not overwrite the border when drawing the control */
DrawEdge
((
HDC
)
NULL
,
rcDraw
,
EDGE_SUNKEN
,
BF_RECT
|
BF_ADJUST
);
/* this is correct, the control does NOT expand vertically */
/* like it does horizontally */
/* make sure we don't move the controls bottom out of the client */
...
...
@@ -1543,10 +1534,10 @@ static void MONTHCAL_UpdateSize(HWND hwnd)
}
/* calculate title area */
title
->
top
=
rcClient
->
top
+
1
;
title
->
top
=
rcClient
->
top
;
title
->
bottom
=
title
->
top
+
2
*
infoPtr
->
textHeight
+
4
;
title
->
left
=
rcClient
->
left
+
1
;
title
->
right
=
rcClient
->
right
-
1
;
title
->
left
=
rcClient
->
left
;
title
->
right
=
rcClient
->
right
;
/* recalculate the height and width increments and offsets */
infoPtr
->
width_increment
=
(
infoPtr
->
rcDraw
.
right
-
infoPtr
->
rcDraw
.
left
)
/
7
.
0
;
...
...
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