comparison os2/dw.c @ 317:83edbd751da9

Added dw_tree_get_data() to get a tree item's data.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 03 Apr 2003 00:29:46 +0000
parents 89eac0990c67
children 1c961a4d0f43
comparison
equal deleted inserted replaced
316:a07e08f708d6 317:83edbd751da9
5714 5714
5715 pci->user = itemdata; 5715 pci->user = itemdata;
5716 } 5716 }
5717 5717
5718 /* 5718 /*
5719 * Gets the item data of a tree item.
5720 * Parameters:
5721 * handle: Handle to the tree containing the item.
5722 * item: Handle of the item to be modified.
5723 */
5724 void * API dw_tree_get_data(HWND handle, HWND item)
5725 {
5726 PCNRITEM pci = (PCNRITEM)item;
5727
5728 if(!pci)
5729 return NULL;
5730 return pci->user;
5731 }
5732
5733 /*
5719 * Sets this item as the active selection. 5734 * Sets this item as the active selection.
5720 * Parameters: 5735 * Parameters:
5721 * handle: Handle to the tree window (widget) to be selected. 5736 * handle: Handle to the tree window (widget) to be selected.
5722 * item: Handle to the item to be selected. 5737 * item: Handle to the item to be selected.
5723 */ 5738 */