Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreefreeitems.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreefreeitems.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreefreeitems.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreefreeitems.html on line 8

PtTreeFreeItems()

Free an unlinked item

Synopsis:

int PtTreeFreeItems( PtTreeItem_t *item );

Description:

This function frees the given subtrees (the item together with its brothers and their children). The items must not belong to any tree — use PtTreeRemoveChildren(), PtTreeRemoveItem(), or PtTreeRemoveList() to remove the subtree from a tree widget before freeing the subtrees.

Returns:

0
Success.
-1
The item is still in a widget.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtTree, PtTreeAllocItem(), PtTreeFreeAllItems(), PtTreeItem_t, PtTreeRemoveChildren(), PtTreeRemoveItem(), PtTreeRemoveList()


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreefreeitems.html on line 104

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreefreeitems.html on line 104