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
49dabfe3
Commit
49dabfe3
authored
Dec 12, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/treeview: Draw +/- signs with text color, not the lines' one.
+/- aren't affected by customdraw settings, only per control set colors used.
parent
b65a7a00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
treeview.c
dlls/comctl32/treeview.c
+16
-9
No files found.
dlls/comctl32/treeview.c
View file @
49dabfe3
...
...
@@ -2333,7 +2333,7 @@ TREEVIEW_DrawItemLines(const TREEVIEW_INFO *infoPtr, HDC hdc, const TREEVIEW_ITE
hbr
=
CreateSolidBrush
(
clrBk
);
hbrOld
=
SelectObject
(
hdc
,
hbr
);
centerx
=
(
item
->
linesOffset
+
item
->
stateOffset
)
/
2
;
centery
=
(
item
->
rect
.
top
+
item
->
rect
.
bottom
)
/
2
;
...
...
@@ -2414,16 +2414,20 @@ TREEVIEW_DrawItemLines(const TREEVIEW_INFO *infoPtr, HDC hdc, const TREEVIEW_ITE
LONG
rectsize
=
min
(
height
,
width
)
/
4
;
/* plussize = ceil(rectsize * 3/4) */
LONG
plussize
=
(
rectsize
+
1
)
*
3
/
4
;
HPEN
hNewP
en
=
CreatePen
(
PS_SOLID
,
0
,
GETLINECOLOR
(
infoPtr
->
clrLine
));
HPEN
hOldPen
=
SelectObject
(
hdc
,
hNewP
en
);
HPEN
new_p
en
=
CreatePen
(
PS_SOLID
,
0
,
GETLINECOLOR
(
infoPtr
->
clrLine
));
HPEN
old_pen
=
SelectObject
(
hdc
,
new_p
en
);
Rectangle
(
hdc
,
centerx
-
rectsize
-
1
,
centery
-
rectsize
-
1
,
centerx
+
rectsize
+
2
,
centery
+
rectsize
+
2
);
SelectObject
(
hdc
,
hOldPen
);
DeleteObject
(
hNewPen
);
SelectObject
(
hdc
,
old_pen
);
DeleteObject
(
new_pen
);
/* draw +/- signs with current text color */
new_pen
=
CreatePen
(
PS_SOLID
,
0
,
GETTXTCOLOR
(
infoPtr
->
clrText
));
old_pen
=
SelectObject
(
hdc
,
new_pen
);
if
(
height
<
18
||
width
<
18
)
{
MoveToEx
(
hdc
,
centerx
-
plussize
+
1
,
centery
,
NULL
);
...
...
@@ -2448,6 +2452,9 @@ TREEVIEW_DrawItemLines(const TREEVIEW_INFO *infoPtr, HDC hdc, const TREEVIEW_ITE
SetPixel
(
hdc
,
centerx
+
1
,
centery
,
clrBk
);
}
}
SelectObject
(
hdc
,
old_pen
);
DeleteObject
(
new_pen
);
}
}
}
...
...
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