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
9ce37618
Commit
9ce37618
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: Use recently introduced enum in scroll buttons painting helper.
parent
ae1062c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
monthcal.c
dlls/comctl32/monthcal.c
+8
-10
No files found.
dlls/comctl32/monthcal.c
View file @
9ce37618
...
...
@@ -712,12 +712,12 @@ static void MONTHCAL_DrawDay(const MONTHCAL_INFO *infoPtr, HDC hdc, const SYSTEM
}
static
void
MONTHCAL_PaintButton
(
MONTHCAL_INFO
*
infoPtr
,
HDC
hdc
,
BOOL
btnNext
)
static
void
MONTHCAL_PaintButton
(
MONTHCAL_INFO
*
infoPtr
,
HDC
hdc
,
enum
nav_direction
button
)
{
HTHEME
theme
=
GetWindowTheme
(
infoPtr
->
hwndSelf
);
RECT
*
r
=
b
tnNext
?
&
infoPtr
->
titlebtnnext
:
&
infoPtr
->
titlebtnprev
;
BOOL
pressed
=
b
tnNext
?
(
infoPtr
->
status
&
MC_NEXTPRESSED
)
:
(
infoPtr
->
status
&
MC_PREVPRESSED
)
;
RECT
*
r
=
b
utton
==
DIRECTION_FORWARD
?
&
infoPtr
->
titlebtnnext
:
&
infoPtr
->
titlebtnprev
;
BOOL
pressed
=
b
utton
==
DIRECTION_FORWARD
?
infoPtr
->
status
&
MC_NEXTPRESSED
:
infoPtr
->
status
&
MC_PREVPRESSED
;
if
(
theme
)
{
static
const
int
states
[]
=
{
...
...
@@ -726,7 +726,7 @@ static void MONTHCAL_PaintButton(MONTHCAL_INFO *infoPtr, HDC hdc, BOOL btnNext)
/* Next button */
ABS_RIGHTNORMAL
,
ABS_RIGHTPRESSED
,
ABS_RIGHTDISABLED
};
int
stateNum
=
b
tnNext
?
3
:
0
;
int
stateNum
=
b
utton
==
DIRECTION_FORWARD
?
3
:
0
;
if
(
pressed
)
stateNum
+=
1
;
else
...
...
@@ -737,7 +737,7 @@ static void MONTHCAL_PaintButton(MONTHCAL_INFO *infoPtr, HDC hdc, BOOL btnNext)
}
else
{
int
style
=
b
tnNext
?
DFCS_SCROLLRIGHT
:
DFCS_SCROLLLEFT
;
int
style
=
b
utton
==
DIRECTION_FORWARD
?
DFCS_SCROLLRIGHT
:
DFCS_SCROLLLEFT
;
if
(
pressed
)
style
|=
DFCS_PUSHED
;
else
...
...
@@ -1083,8 +1083,8 @@ static void MONTHCAL_Refresh(MONTHCAL_INFO *infoPtr, HDC hdc, const PAINTSTRUCT
MONTHCAL_PaintTodayTitle
(
infoPtr
,
hdc
,
ps
);
/* navigation buttons */
MONTHCAL_PaintButton
(
infoPtr
,
hdc
,
FALSE
);
MONTHCAL_PaintButton
(
infoPtr
,
hdc
,
TRUE
);
MONTHCAL_PaintButton
(
infoPtr
,
hdc
,
DIRECTION_BACKWARD
);
MONTHCAL_PaintButton
(
infoPtr
,
hdc
,
DIRECTION_FORWARD
);
/* restore context */
SetBkColor
(
hdc
,
old_bk_clr
);
...
...
@@ -2418,8 +2418,6 @@ static LRESULT MONTHCAL_Size(MONTHCAL_INFO *infoPtr, int Width, int Height)
TRACE
(
"(width=%d, height=%d)
\n
"
,
Width
,
Height
);
MONTHCAL_UpdateSize
(
infoPtr
);
/* invalidate client area and erase background */
InvalidateRect
(
infoPtr
->
hwndSelf
,
NULL
,
TRUE
);
return
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