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
0fa33cad
Commit
0fa33cad
authored
Oct 07, 2004
by
Jon Griffiths
Committed by
Alexandre Julliard
Oct 07, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Draw +/- correctly for large icon sizes.
parent
fc1f31a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
19 deletions
+23
-19
treeview.c
dlls/comctl32/treeview.c
+23
-19
No files found.
dlls/comctl32/treeview.c
View file @
0fa33cad
...
@@ -2319,20 +2319,8 @@ TREEVIEW_DrawItemLines(TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item)
...
@@ -2319,20 +2319,8 @@ TREEVIEW_DrawItemLines(TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item)
HBRUSH
hbr
=
CreateSolidBrush
(
infoPtr
->
clrBk
);
HBRUSH
hbr
=
CreateSolidBrush
(
infoPtr
->
clrBk
);
HBRUSH
hbrOld
=
SelectObject
(
hdc
,
hbr
);
HBRUSH
hbrOld
=
SelectObject
(
hdc
,
hbr
);
/* FIXME: Native actually draws:
Rectangle
(
hdc
,
centerx
-
rectsize
-
1
,
centery
-
rectsize
-
1
,
*
centerx
+
rectsize
+
2
,
centery
+
rectsize
+
2
);
* xxx
* X x
* xxx xxx xxxxxxx
* x x or x x
* xxx xxx xxxxxxx
* x x
* xxx
*
* This looks a lot better when the icon size is increased.
*/
Rectangle
(
hdc
,
centerx
-
rectsize
-
1
,
centery
-
rectsize
-
1
,
centerx
+
rectsize
+
2
,
centery
+
rectsize
+
2
);
SelectObject
(
hdc
,
hbrOld
);
SelectObject
(
hdc
,
hbrOld
);
DeleteObject
(
hbr
);
DeleteObject
(
hbr
);
...
@@ -2340,13 +2328,29 @@ TREEVIEW_DrawItemLines(TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item)
...
@@ -2340,13 +2328,29 @@ TREEVIEW_DrawItemLines(TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item)
SelectObject
(
hdc
,
hOldPen
);
SelectObject
(
hdc
,
hOldPen
);
DeleteObject
(
hNewPen
);
DeleteObject
(
hNewPen
);
MoveToEx
(
hdc
,
centerx
-
plussize
+
1
,
centery
,
NULL
);
if
(
height
<
16
||
width
<
16
)
LineTo
(
hdc
,
centerx
+
plussize
,
centery
);
{
MoveToEx
(
hdc
,
centerx
-
plussize
+
1
,
centery
,
NULL
);
LineTo
(
hdc
,
centerx
+
plussize
,
centery
);
if
(
!
(
item
->
state
&
TVIS_EXPANDED
))
if
(
!
(
item
->
state
&
TVIS_EXPANDED
))
{
MoveToEx
(
hdc
,
centerx
,
centery
-
plussize
+
1
,
NULL
);
LineTo
(
hdc
,
centerx
,
centery
+
plussize
);
}
}
else
{
{
MoveToEx
(
hdc
,
centerx
,
centery
-
plussize
+
1
,
NULL
);
Rectangle
(
hdc
,
centerx
-
plussize
+
1
,
centery
-
1
,
LineTo
(
hdc
,
centerx
,
centery
+
plussize
);
centerx
+
plussize
,
centery
+
2
);
if
(
!
(
item
->
state
&
TVIS_EXPANDED
))
{
Rectangle
(
hdc
,
centerx
-
1
,
centery
-
plussize
+
1
,
centerx
+
2
,
centery
+
plussize
);
SetPixel
(
hdc
,
centerx
-
1
,
centery
,
infoPtr
->
clrBk
);
SetPixel
(
hdc
,
centerx
+
1
,
centery
,
infoPtr
->
clrBk
);
}
}
}
}
}
}
}
...
...
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