comparison win/dw.c @ 1870:5a4d98cab9d3

Fixed dw_tree_get_title() on Windows and implemented tests for dw_tree_get_title() and dw_tree_item_g/set_data() in the test program.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 23 Mar 2013 19:52:38 +0000
parents a2d556368be1
children eae36372d64d
comparison
equal deleted inserted replaced
1869:a2d556368be1 1870:5a4d98cab9d3
8817 TVITEM tvi; 8817 TVITEM tvi;
8818 TCHAR textbuf[1025] = {0}, *textptr = textbuf; 8818 TCHAR textbuf[1025] = {0}, *textptr = textbuf;
8819 8819
8820 tvi.mask = TVIF_HANDLE | TVIF_TEXT; 8820 tvi.mask = TVIF_HANDLE | TVIF_TEXT;
8821 tvi.hItem = item; 8821 tvi.hItem = item;
8822 tvi.pszText = textptr;
8823 tvi.cchTextMax = 1024;
8822 8824
8823 if(TreeView_GetItem(handle, &tvi)) 8825 if(TreeView_GetItem(handle, &tvi))
8824 return _strdup(WideToUTF8(textptr)); 8826 return _strdup(WideToUTF8(textptr));
8825 return NULL; 8827 return NULL;
8826 } 8828 }