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
9d366f1f
Commit
9d366f1f
authored
Feb 04, 2002
by
Aric Stewart
Committed by
Alexandre Julliard
Feb 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added implementation of SetItemW.
parent
d9c1fc33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
treeview.c
dlls/comctl32/treeview.c
+35
-1
No files found.
dlls/comctl32/treeview.c
View file @
9d366f1f
...
...
@@ -1988,6 +1988,40 @@ TREEVIEW_GetItemW(TREEVIEW_INFO *infoPtr, LPTVITEMEXA tvItem)
}
static
LRESULT
TREEVIEW_SetItemW
(
TREEVIEW_INFO
*
infoPtr
,
LPTVITEMEXW
tvItem
)
{
TVITEMEXA
tvItemA
;
INT
len
;
LRESULT
rc
;
tvItemA
.
mask
=
tvItem
->
mask
;
tvItemA
.
hItem
=
tvItem
->
hItem
;
tvItemA
.
state
=
tvItem
->
state
;
tvItemA
.
stateMask
=
tvItem
->
stateMask
;
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
tvItem
->
pszText
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
if
(
len
)
{
len
++
;
tvItemA
.
pszText
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
tvItem
->
pszText
,
-
1
,
tvItemA
.
pszText
,
len
,
NULL
,
NULL
);
}
else
tvItemA
.
pszText
=
NULL
;
tvItemA
.
cchTextMax
=
tvItem
->
cchTextMax
;
tvItemA
.
iImage
=
tvItem
->
iImage
;
tvItemA
.
iSelectedImage
=
tvItem
->
iSelectedImage
;
tvItemA
.
cChildren
=
tvItem
->
cChildren
;
tvItemA
.
lParam
=
tvItem
->
lParam
;
tvItemA
.
iIntegral
=
tvItem
->
iIntegral
;
rc
=
TREEVIEW_SetItemA
(
infoPtr
,
&
tvItemA
);
HeapFree
(
GetProcessHeap
(),
0
,
tvItemA
.
pszText
);
return
rc
;
}
static
LRESULT
TREEVIEW_GetItemState
(
TREEVIEW_INFO
*
infoPtr
,
HTREEITEM
wineItem
,
UINT
mask
)
{
TRACE
(
"
\n
"
);
...
...
@@ -5043,7 +5077,7 @@ TREEVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TREEVIEW_SetItemA
(
infoPtr
,
(
LPTVITEMEXA
)
lParam
);
case
TVM_SETITEMW
:
FIXME
(
"Unimplemented msg TVM_SETITEMW
\n
"
);
return
TREEVIEW_SetItemW
(
infoPtr
,
(
LPTVITEMEXW
)
lParam
);
return
0
;
case
TVM_SETLINECOLOR
:
...
...
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