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
6b76244b
Commit
6b76244b
authored
Jan 30, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed creation of PS_ALTERNATE pens.
parent
1911eed0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
treeview.c
dlls/comctl32/treeview.c
+4
-1
uitools.c
dlls/user/uitools.c
+4
-1
No files found.
dlls/comctl32/treeview.c
View file @
6b76244b
...
...
@@ -2316,11 +2316,14 @@ TREEVIEW_DrawItemLines(TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item)
{
HPEN
hOldPen
,
hNewPen
;
HTREEITEM
parent
;
LOGBRUSH
lb
;
/*
* Get a dotted grey pen
*/
hNewPen
=
CreatePen
(
PS_ALTERNATE
,
0
,
infoPtr
->
clrLine
);
lb
.
lbStyle
=
BS_SOLID
;
lb
.
lbColor
=
infoPtr
->
clrLine
;
hNewPen
=
ExtCreatePen
(
PS_COSMETIC
|
PS_ALTERNATE
,
1
,
&
lb
,
0
,
NULL
);
hOldPen
=
SelectObject
(
hdc
,
hNewPen
);
MoveToEx
(
hdc
,
item
->
stateOffset
,
centery
,
NULL
);
...
...
dlls/user/uitools.c
View file @
6b76244b
...
...
@@ -1480,9 +1480,12 @@ BOOL WINAPI DrawFocusRect( HDC hdc, const RECT* rc )
HBRUSH
hOldBrush
;
HPEN
hOldPen
,
hNewPen
;
INT
oldDrawMode
,
oldBkMode
;
LOGBRUSH
lb
;
hOldBrush
=
SelectObject
(
hdc
,
GetStockObject
(
NULL_BRUSH
));
hNewPen
=
CreatePen
(
PS_ALTERNATE
,
1
,
GetSysColor
(
COLOR_WINDOWTEXT
));
lb
.
lbStyle
=
BS_SOLID
;
lb
.
lbColor
=
GetSysColor
(
COLOR_WINDOWTEXT
);
hNewPen
=
ExtCreatePen
(
PS_COSMETIC
|
PS_ALTERNATE
,
1
,
&
lb
,
0
,
NULL
);
hOldPen
=
SelectObject
(
hdc
,
hNewPen
);
oldDrawMode
=
SetROP2
(
hdc
,
R2_XORPEN
);
oldBkMode
=
SetBkMode
(
hdc
,
TRANSPARENT
);
...
...
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