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
7203ee66
Commit
7203ee66
authored
Oct 31, 2000
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 31, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use PS_ALTERNATE rather than PS_DOT.
Use Rectangle to draw focus rectangles.
parent
b8d450f9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
31 deletions
+10
-31
listview.c
dlls/comctl32/listview.c
+1
-1
monthcal.c
dlls/comctl32/monthcal.c
+1
-1
tab.c
dlls/comctl32/tab.c
+5
-7
treeview.c
dlls/comctl32/treeview.c
+3
-22
No files found.
dlls/comctl32/listview.c
View file @
7203ee66
...
...
@@ -3650,7 +3650,7 @@ static VOID LISTVIEW_Refresh(HWND hwnd, HDC hdc)
hOldFont
=
SelectObject
(
hdc
,
infoPtr
->
hFont
);
/* select the dotted pen (for drawing the focus box) */
hPen
=
CreatePen
(
PS_
DOT
,
1
,
0
);
hPen
=
CreatePen
(
PS_
ALTERNATE
,
1
,
0
);
hOldPen
=
SelectObject
(
hdc
,
hPen
);
/* select transparent brush (for drawing the focus box) */
...
...
dlls/comctl32/monthcal.c
View file @
7203ee66
...
...
@@ -366,7 +366,7 @@ static void MONTHCAL_DrawDay(HDC hdc, MONTHCAL_INFO *infoPtr, int day, int month
/* draw a rectangle around the currently selected days text */
if
((
day
==
infoPtr
->
curSelDay
)
&&
(
month
==
infoPtr
->
currentMonth
))
{
hNewPen
=
CreatePen
(
PS_
DOT
,
0
,
GetSysColor
(
COLOR_WINDOWTEXT
)
);
hNewPen
=
CreatePen
(
PS_
ALTERNATE
,
0
,
GetSysColor
(
COLOR_WINDOWTEXT
)
);
hbr
=
GetSysColorBrush
(
COLOR_WINDOWTEXT
);
FrameRect
(
hdc
,
&
r
,
hbr
);
SelectObject
(
hdc
,
hOldPen
);
...
...
dlls/comctl32/tab.c
View file @
7203ee66
...
...
@@ -1594,7 +1594,7 @@ static void TAB_DrawItem(
HPEN
hbPen
=
GetSysColorPen
(
COLOR_3DDKSHADOW
);
HPEN
hShade
=
GetSysColorPen
(
COLOR_BTNSHADOW
);
HPEN
hfocusPen
=
CreatePen
(
PS_
DOT
,
1
,
GetSysColor
(
COLOR_BTNTEXT
));
HPEN
hfocusPen
=
CreatePen
(
PS_
ALTERNATE
,
1
,
GetSysColor
(
COLOR_BTNTEXT
));
HPEN
holdPen
;
INT
oldBkMode
;
...
...
@@ -1834,16 +1834,14 @@ static void TAB_DrawItem(
(
GetFocus
()
==
hwnd
)
&&
(
iItem
==
infoPtr
->
uFocus
)
)
{
HBRUSH
hOldBrush
;
r
=
itemRect
;
InflateRect
(
&
r
,
-
1
,
-
1
);
hOldBrush
=
SelectObject
(
hdc
,
GetStockObject
(
NULL_BRUSH
));
SelectObject
(
hdc
,
hfocusPen
);
MoveToEx
(
hdc
,
r
.
left
,
r
.
top
,
NULL
);
LineTo
(
hdc
,
r
.
right
-
1
,
r
.
top
);
LineTo
(
hdc
,
r
.
right
-
1
,
r
.
bottom
-
1
);
LineTo
(
hdc
,
r
.
left
,
r
.
bottom
-
1
);
LineTo
(
hdc
,
r
.
left
,
r
.
top
);
Rectangle
(
hdc
,
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
SelectObject
(
hdc
,
hOldBrush
);
}
/* Cleanup */
...
...
dlls/comctl32/treeview.c
View file @
7203ee66
...
...
@@ -2117,7 +2117,7 @@ TREEVIEW_DrawItemLines(TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item)
/*
* Get a dotted grey pen
*/
hNewPen
=
CreatePen
(
PS_
DOT
,
0
,
infoPtr
->
clrLine
);
hNewPen
=
CreatePen
(
PS_
ALTERNATE
,
0
,
infoPtr
->
clrLine
);
hOldPen
=
SelectObject
(
hdc
,
hNewPen
);
MoveToEx
(
hdc
,
item
->
stateOffset
,
centery
,
NULL
);
...
...
@@ -2343,29 +2343,10 @@ TREEVIEW_DrawItem(TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *wineItem)
DeleteObject
(
hbrBk
);
}
/* Draw the box ar
r
ound the selected item */
/* Draw the box around the selected item */
if
((
wineItem
==
infoPtr
->
selectedItem
)
&&
inFocus
)
{
HPEN
hNewPen
=
CreatePen
(
PS_DOT
,
0
,
GetSysColor
(
COLOR_WINDOWTEXT
));
HPEN
hOldPen
=
SelectObject
(
hdc
,
hNewPen
);
INT
rop
=
SetROP2
(
hdc
,
R2_XORPEN
);
POINT
points
[
5
];
points
[
4
].
x
=
points
[
0
].
x
=
rcText
.
left
;
points
[
4
].
y
=
points
[
0
].
y
=
rcText
.
top
;
points
[
1
].
x
=
rcText
.
right
-
1
;
points
[
1
].
y
=
rcText
.
top
;
points
[
2
].
x
=
rcText
.
right
-
1
;
points
[
2
].
y
=
rcText
.
bottom
-
1
;
points
[
3
].
x
=
rcText
.
left
;
points
[
3
].
y
=
rcText
.
bottom
-
1
;
Polyline
(
hdc
,
points
,
5
);
SetROP2
(
hdc
,
rop
);
SelectObject
(
hdc
,
hOldPen
);
DeleteObject
(
hNewPen
);
DrawFocusRect
(
hdc
,
&
rcText
);
}
InflateRect
(
&
rcText
,
-
2
,
-
1
);
/* allow for the focus rect */
...
...
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