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
6a514819
Commit
6a514819
authored
Mar 12, 2007
by
Felix Nawothnig
Committed by
Alexandre Julliard
Mar 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix visual glitches with TVS_HASLINES.
parent
0f2f718d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
treeview.c
dlls/comctl32/treeview.c
+10
-3
No files found.
dlls/comctl32/treeview.c
View file @
6a514819
...
...
@@ -1730,6 +1730,11 @@ TREEVIEW_NaturalHeight(TREEVIEW_INFO *infoPtr)
height
=
tm
.
tmHeight
+
tm
.
tmExternalLeading
+
TVHEIGHT_FONT_ADJUST
;
if
(
height
<
infoPtr
->
normalImageHeight
)
height
=
infoPtr
->
normalImageHeight
;
/* Round down, unless we support odd ("non even") heights. */
if
(
!
(
infoPtr
->
dwStyle
&
TVS_NONEVENHEIGHT
))
height
&=
~
1
;
return
height
;
}
...
...
@@ -2325,14 +2330,16 @@ TREEVIEW_DrawItemLines(TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item)
HTREEITEM
parent
;
LOGBRUSH
lb
;
/*
* Get a dotted grey pen
*/
/* Get a dotted grey pen */
lb
.
lbStyle
=
BS_SOLID
;
lb
.
lbColor
=
infoPtr
->
clrLine
;
hNewPen
=
ExtCreatePen
(
PS_COSMETIC
|
PS_ALTERNATE
,
1
,
&
lb
,
0
,
NULL
);
hOldPen
=
SelectObject
(
hdc
,
hNewPen
);
/* Make sure the center is on a dot (using +2 instead
* of +1 gives us pixel-by-pixel compat with native) */
centery
=
(
centery
+
2
)
&
~
1
;
MoveToEx
(
hdc
,
item
->
stateOffset
,
centery
,
NULL
);
LineTo
(
hdc
,
centerx
-
1
,
centery
);
...
...
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