Parent Directory
|
Revision Log
|
Patch
revision 120 by twoaday, Mon Nov 14 15:01:01 2005 UTC | revision 121 by twoaday, Mon Dec 12 11:19:56 2005 UTC | |
---|---|---|
# | Line 351 listview_find (listview_ctrl_t ctx, cons | Line 351 listview_find (listview_ctrl_t ctx, cons |
351 | return pos; | return pos; |
352 | } | } |
353 | ||
/** Some functions to make the handling with TreeView Controls easier **/ | ||
int | ||
treeview_add_item( HWND tree, HTREEITEM parent, const char *text ) | ||
{ | ||
TVINSERTSTRUCT tvis; | ||
memset( &tvis, 0, sizeof tvis ); | ||
tvis.hParent = parent; | ||
tvis.hInsertAfter = TVI_LAST; | ||
tvis.item.mask = TVIF_TEXT; | ||
tvis.item.pszText = (char *)text; | ||
TreeView_InsertItem( tree, &tvis ); | ||
return 0; | ||
} /* treeview_add_item */ |
|
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |