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
e9654359
Commit
e9654359
authored
Feb 28, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Fill content tree.
parent
cdb67b28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
content.c
dlls/hhctrl.ocx/content.c
+29
-0
No files found.
dlls/hhctrl.ocx/content.c
View file @
e9654359
...
...
@@ -351,6 +351,34 @@ static ContentItem *parse_hhc(HHInfo *info, IStream *str, insert_type_t *insert_
return
ret
;
}
static
void
insert_content_item
(
HWND
hwnd
,
ContentItem
*
parent
,
ContentItem
*
item
)
{
TVINSERTSTRUCTW
tvis
;
memset
(
&
tvis
,
0
,
sizeof
(
tvis
));
tvis
.
u
.
item
.
mask
=
TVIF_TEXT
|
TVIF_PARAM
;
tvis
.
u
.
item
.
cchTextMax
=
strlenW
(
item
->
name
)
+
1
;
tvis
.
u
.
item
.
pszText
=
item
->
name
;
tvis
.
u
.
item
.
lParam
=
(
LPARAM
)
item
;
tvis
.
hParent
=
parent
?
parent
->
id
:
0
;
tvis
.
hInsertAfter
=
TVI_LAST
;
item
->
id
=
(
HTREEITEM
)
SendMessageW
(
hwnd
,
TVM_INSERTITEMW
,
0
,
(
LPARAM
)
&
tvis
);
}
static
void
fill_content_tree
(
HWND
hwnd
,
ContentItem
*
parent
,
ContentItem
*
item
)
{
while
(
item
)
{
if
(
item
->
name
)
{
insert_content_item
(
hwnd
,
parent
,
item
);
fill_content_tree
(
hwnd
,
item
,
item
->
child
);
}
else
{
fill_content_tree
(
hwnd
,
parent
,
item
->
child
);
}
item
=
item
->
next
;
}
}
static
void
set_item_parents
(
ContentItem
*
parent
,
ContentItem
*
item
)
{
while
(
item
)
{
...
...
@@ -380,6 +408,7 @@ void InitContent(HHInfo *info)
IStream_Release
(
stream
);
set_item_parents
(
NULL
,
info
->
content
);
fill_content_tree
(
info
->
tabs
[
TAB_CONTENTS
].
hwnd
,
NULL
,
info
->
content
);
}
static
void
free_content_item
(
ContentItem
*
item
)
...
...
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