diff 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
line wrap: on
line diff
--- a/os2/dw.c	Wed Apr 02 11:31:38 2003 +0000
+++ b/os2/dw.c	Thu Apr 03 00:29:46 2003 +0000
@@ -5716,6 +5716,21 @@
 }
 
 /*
+ * Gets the item data of a tree item.
+ * Parameters:
+ *          handle: Handle to the tree containing the item.
+ *          item: Handle of the item to be modified.
+ */
+void * API dw_tree_get_data(HWND handle, HWND item)
+{
+	PCNRITEM pci = (PCNRITEM)item;
+
+	if(!pci)
+		return NULL;
+	return pci->user;
+}
+
+/*
  * Sets this item as the active selection.
  * Parameters:
  *       handle: Handle to the tree window (widget) to be selected.