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
fbcc21be
Commit
fbcc21be
authored
Jan 11, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the DrawFocusRect function to draw the focus rect, instead of a
broken home-brewed solution.
parent
3dad1f90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
monthcal.c
dlls/comctl32/monthcal.c
+2
-7
No files found.
dlls/comctl32/monthcal.c
View file @
fbcc21be
...
...
@@ -337,7 +337,6 @@ static void MONTHCAL_DrawDay(MONTHCAL_INFO *infoPtr, HDC hdc, int day, int month
RECT
r
;
static
int
haveBoldFont
,
haveSelectedDay
=
FALSE
;
HBRUSH
hbr
;
HPEN
hNewPen
,
hOldPen
=
0
;
COLORREF
oldCol
=
0
;
COLORREF
oldBk
=
0
;
...
...
@@ -394,12 +393,8 @@ static void MONTHCAL_DrawDay(MONTHCAL_INFO *infoPtr, HDC hdc, int day, int month
DrawTextA
(
hdc
,
buf
,
-
1
,
&
r
,
DT_CENTER
|
DT_VCENTER
|
DT_SINGLELINE
);
/* draw a rectangle around the currently selected days text */
if
((
day
==
infoPtr
->
curSelDay
)
&&
(
month
==
infoPtr
->
currentMonth
))
{
hNewPen
=
CreatePen
(
PS_ALTERNATE
,
0
,
GetSysColor
(
COLOR_WINDOWTEXT
)
);
hbr
=
GetSysColorBrush
(
COLOR_WINDOWTEXT
);
FrameRect
(
hdc
,
&
r
,
hbr
);
SelectObject
(
hdc
,
hOldPen
);
}
if
((
day
==
infoPtr
->
curSelDay
)
&&
(
month
==
infoPtr
->
currentMonth
))
DrawFocusRect
(
hdc
,
&
r
);
}
...
...
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