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
a1f7c09b
Commit
a1f7c09b
authored
May 20, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/treeview: Item text should be vertically aligned.
parent
4b741e8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
treeview.c
dlls/comctl32/treeview.c
+9
-4
No files found.
dlls/comctl32/treeview.c
View file @
a1f7c09b
...
...
@@ -2621,6 +2621,8 @@ TREEVIEW_DrawItem(const TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item)
if
(
item
->
pszText
)
{
RECT
rcText
;
UINT
align
;
SIZE
sz
;
rcText
.
top
=
item
->
rect
.
top
;
rcText
.
bottom
=
item
->
rect
.
bottom
;
...
...
@@ -2631,19 +2633,22 @@ TREEVIEW_DrawItem(const TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item)
debugstr_w
(
item
->
pszText
),
wine_dbgstr_rect
(
&
rcText
));
/* Draw it */
ExtTextOutW
(
hdc
,
rcText
.
left
+
2
,
rcText
.
top
+
1
,
GetTextExtentPoint32W
(
hdc
,
item
->
pszText
,
strlenW
(
item
->
pszText
),
&
sz
);
align
=
SetTextAlign
(
hdc
,
TA_LEFT
|
TA_TOP
);
ExtTextOutW
(
hdc
,
rcText
.
left
+
2
,
(
rcText
.
top
+
rcText
.
bottom
-
sz
.
cy
)
/
2
,
ETO_CLIPPED
|
ETO_OPAQUE
,
&
rcText
,
item
->
pszText
,
lstrlenW
(
item
->
pszText
),
NULL
);
/* Draw the box around the selected item */
SetTextAlign
(
hdc
,
align
);
/* Draw focus box around the selected item */
if
((
item
==
infoPtr
->
selectedItem
)
&&
inFocus
)
{
DrawFocusRect
(
hdc
,
&
rcText
);
}
}
}
...
...
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