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
b6c28ff6
Commit
b6c28ff6
authored
Mar 11, 2002
by
Duane Clark
Committed by
Alexandre Julliard
Mar 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for report mode text justification.
parent
4a6b990c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
listview.c
dlls/comctl32/listview.c
+21
-1
No files found.
dlls/comctl32/listview.c
View file @
b6c28ff6
...
...
@@ -272,6 +272,7 @@ static BOOL LISTVIEW_IsSelected(HWND hwnd, INT nItem);
static
VOID
LISTVIEW_RemoveSelectionRange
(
HWND
hwnd
,
INT
lItem
,
INT
uItem
);
static
void
LISTVIEW_FillBackground
(
HWND
hwnd
,
HDC
hdc
,
LPRECT
rc
);
static
void
ListView_UpdateLargeItemLabelRect
(
HWND
hwnd
,
const
LISTVIEW_INFO
*
infoPtr
,
int
nItem
,
RECT
*
rect
);
static
LRESULT
LISTVIEW_GetColumnT
(
HWND
,
INT
,
LPLVCOLUMNW
,
BOOL
);
/******** Defines that LISTVIEW_ProcessLetterKeys uses ****************/
#define KEY_DELAY 450
...
...
@@ -3006,8 +3007,11 @@ static VOID LISTVIEW_DrawSubItem(HWND hwnd, HDC hdc, INT nItem, INT nSubItem,
LISTVIEW_INFO
*
infoPtr
=
(
LISTVIEW_INFO
*
)
GetWindowLongW
(
hwnd
,
0
);
WCHAR
szDispText
[
DISP_TEXT_SIZE
];
LVITEMW
lvItem
;
LVCOLUMNW
lvColumn
;
UINT
textoutOptions
=
ETO_CLIPPED
|
ETO_OPAQUE
;
RECT
rcTemp
;
INT
textLeft
;
INT
nLabelWidth
=
0
;
TRACE
(
"(hwnd=%x, hdc=%x, nItem=%d, nSubItem=%d)
\n
"
,
hwnd
,
hdc
,
nItem
,
nSubItem
);
...
...
@@ -3022,6 +3026,22 @@ static VOID LISTVIEW_DrawSubItem(HWND hwnd, HDC hdc, INT nItem, INT nSubItem,
*
lvItem
.
pszText
=
'\0'
;
LISTVIEW_GetItemW
(
hwnd
,
&
lvItem
,
TRUE
);
TRACE
(
" lvItem=%s
\n
"
,
debuglvitem_t
(
&
lvItem
,
TRUE
));
ZeroMemory
(
&
lvColumn
,
sizeof
(
lvColumn
));
lvColumn
.
mask
=
LVCF_FMT
;
LISTVIEW_GetColumnT
(
hwnd
,
nSubItem
,
&
lvColumn
,
TRUE
);
textLeft
=
rcItem
.
left
;
if
(
lvColumn
.
fmt
!=
LVCFMT_LEFT
)
{
if
((
nLabelWidth
=
LISTVIEW_GetStringWidthT
(
hwnd
,
lvItem
.
pszText
,
TRUE
)))
{
if
(
lvColumn
.
fmt
==
LVCFMT_RIGHT
)
textLeft
=
rcItem
.
right
-
nLabelWidth
;
else
textLeft
=
rcItem
.
left
+
(
rcItem
.
right
-
rcItem
.
left
-
nLabelWidth
)
/
2
;
}
}
/* redraw the background of the item */
rcTemp
=
rcItem
;
...
...
@@ -3062,7 +3082,7 @@ static VOID LISTVIEW_DrawSubItem(HWND hwnd, HDC hdc, INT nItem, INT nSubItem,
SetTextColor
(
hdc
,
infoPtr
->
clrText
);
}
ExtTextOutW
(
hdc
,
rcItem
.
l
eft
,
rcItem
.
top
,
textoutOptions
,
ExtTextOutW
(
hdc
,
textL
eft
,
rcItem
.
top
,
textoutOptions
,
&
rcItem
,
lvItem
.
pszText
,
lstrlenW
(
lvItem
.
pszText
),
NULL
);
if
(
Selected
)
...
...
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