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
06c4d0e3
Commit
06c4d0e3
authored
Sep 03, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
Sep 03, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented LVM_INSERTCOLUMNW and LVM_INSERTITEMW by using the ascii
equivalents. (WinWord 97, File Open dialog)
parent
43806217
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
5 deletions
+40
-5
listview.c
dlls/comctl32/listview.c
+40
-5
No files found.
dlls/comctl32/listview.c
View file @
06c4d0e3
...
...
@@ -43,6 +43,7 @@
#include <string.h>
#include "winbase.h"
#include "heap.h"
#include "commctrl.h"
#include "listview.h"
#include "debugtools.h"
...
...
@@ -4517,7 +4518,21 @@ static LRESULT LISTVIEW_InsertColumnA(HWND hwnd, INT nColumn,
return
nNewColumn
;
}
/* LISTVIEW_InsertColumnW */
static
LRESULT
LISTVIEW_InsertColumnW
(
HWND
hwnd
,
INT
nColumn
,
LPLVCOLUMNW
lpColumn
)
{
LVCOLUMNA
lvca
;
LRESULT
lres
;
memcpy
(
&
lvca
,
lpColumn
,
sizeof
(
lvca
));
if
(
lpColumn
->
mask
&
LVCF_TEXT
)
lvca
.
pszText
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
lpColumn
->
pszText
);
lres
=
LISTVIEW_InsertColumnA
(
hwnd
,
nColumn
,
&
lvca
);
if
(
lpColumn
->
mask
&
LVCF_TEXT
)
HeapFree
(
GetProcessHeap
(),
0
,
lvca
.
pszText
);
return
lres
;
}
/***
* DESCRIPTION:
...
...
@@ -4617,6 +4632,25 @@ static LRESULT LISTVIEW_InsertItemA(HWND hwnd, LPLVITEMA lpLVItem)
return
nItem
;
}
static
LRESULT
LISTVIEW_InsertItemW
(
HWND
hwnd
,
LPLVITEMW
lpLVItem
)
{
LVITEMA
lvia
;
LRESULT
lres
;
memcpy
(
&
lvia
,
lpLVItem
,
sizeof
(
LVITEMA
));
if
(
lvia
.
mask
&
LVIF_TEXT
)
{
if
(
lpLVItem
->
pszText
==
LPSTR_TEXTCALLBACKW
)
lvia
.
pszText
=
LPSTR_TEXTCALLBACKA
;
else
lvia
.
pszText
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
lpLVItem
->
pszText
);
}
lres
=
LISTVIEW_InsertItemA
(
hwnd
,
&
lvia
);
if
(
lvia
.
mask
&
LVIF_TEXT
)
{
if
(
lpLVItem
->
pszText
!=
LPSTR_TEXTCALLBACKW
)
HeapFree
(
GetProcessHeap
(),
0
,
lvia
.
pszText
);
}
return
lres
;
}
/* LISTVIEW_InsertItemW */
/***
...
...
@@ -6747,15 +6781,16 @@ static LRESULT WINAPI LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam,
return
LISTVIEW_HitTest
(
hwnd
,
(
LPLVHITTESTINFO
)
lParam
);
case
LVM_INSERTCOLUMNA
:
return
LISTVIEW_InsertColumnA
(
hwnd
,
(
INT
)
wParam
,
(
LPLVCOLUMNA
)
lParam
);
return
LISTVIEW_InsertColumnA
(
hwnd
,
(
INT
)
wParam
,
(
LPLVCOLUMNA
)
lParam
);
/* case LVM_INSERTCOLUMNW: */
case
LVM_INSERTCOLUMNW
:
return
LISTVIEW_InsertColumnW
(
hwnd
,
(
INT
)
wParam
,
(
LPLVCOLUMNW
)
lParam
);
case
LVM_INSERTITEMA
:
return
LISTVIEW_InsertItemA
(
hwnd
,
(
LPLVITEMA
)
lParam
);
/* case LVM_INSERTITEMW: */
case
LVM_INSERTITEMW
:
return
LISTVIEW_InsertItemW
(
hwnd
,
(
LPLVITEMW
)
lParam
);
case
LVM_REDRAWITEMS
:
return
LISTVIEW_RedrawItems
(
hwnd
,
(
INT
)
wParam
,
(
INT
)
lParam
);
...
...
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