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
f28afa10
Commit
f28afa10
authored
Feb 23, 2005
by
Maxime Bellengé
Committed by
Alexandre Julliard
Feb 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly displays the text with ellipsis when there is not enough
room in a header item and an image from an imagelist is displayed on the right of the text.
parent
df681b92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
header.c
dlls/comctl32/header.c
+13
-3
No files found.
dlls/comctl32/header.c
View file @
f28afa10
...
@@ -324,9 +324,19 @@ HEADER_DrawItem (HWND hwnd, HDC hdc, INT iItem, BOOL bHotTrack)
...
@@ -324,9 +324,19 @@ HEADER_DrawItem (HWND hwnd, HDC hdc, INT iItem, BOOL bHotTrack)
}
}
else
else
tx
=
0
;
tx
=
0
;
ImageList_DrawEx
(
infoPtr
->
himl
,
phdi
->
iImage
,
hdc
,
r
.
left
+
tx
+
2
*
infoPtr
->
iMargin
,
r
.
top
+
(
r
.
bottom
-
r
.
top
-
infoPtr
->
himl
->
cy
)
/
2
,
infoPtr
->
himl
->
cx
,
r
.
bottom
-
r
.
top
,
if
(
tx
<
(
r
.
right
-
r
.
left
-
infoPtr
->
himl
->
cx
-
GetSystemMetrics
(
SM_CXEDGE
)))
CLR_DEFAULT
,
CLR_DEFAULT
,
0
);
ImageList_DrawEx
(
infoPtr
->
himl
,
phdi
->
iImage
,
hdc
,
r
.
left
+
tx
+
2
*
infoPtr
->
iMargin
,
r
.
top
+
(
r
.
bottom
-
r
.
top
-
infoPtr
->
himl
->
cy
)
/
2
,
infoPtr
->
himl
->
cx
,
r
.
bottom
-
r
.
top
,
CLR_DEFAULT
,
CLR_DEFAULT
,
0
);
else
{
INT
x
=
max
(
r
.
right
-
infoPtr
->
iMargin
-
infoPtr
->
himl
->
cx
,
r
.
left
);
INT
cx
=
min
(
infoPtr
->
himl
->
cx
,
r
.
right
-
r
.
left
-
GetSystemMetrics
(
SM_CXEDGE
));
ImageList_DrawEx
(
infoPtr
->
himl
,
phdi
->
iImage
,
hdc
,
x
,
r
.
top
+
(
r
.
bottom
-
r
.
top
-
infoPtr
->
himl
->
cy
)
/
2
,
cx
,
r
.
bottom
-
r
.
top
,
CLR_DEFAULT
,
CLR_DEFAULT
,
0
);
r
.
right
-=
infoPtr
->
himl
->
cx
-
infoPtr
->
iMargin
;
}
}
}
if
(((
phdi
->
fmt
&
HDF_STRING
)
if
(((
phdi
->
fmt
&
HDF_STRING
)
...
...
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