Mercurial > dwindows
comparison win/dw.c @ 1761:ae7f1a0eb0ea
Experimental change of removing code to prevent events during dw_tree_item_Select().
Not sure why this code is here, we get events on other platforms and I am relying on
that fact in the interface builder. Keep eyes open for issues based on this change.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 26 Jun 2012 01:25:45 +0000 |
parents | 3bbbb5a55cf8 |
children | b472a892ce1f |
comparison
equal
deleted
inserted
replaced
1760:3bbbb5a55cf8 | 1761:ae7f1a0eb0ea |
---|---|
8871 * handle: Handle to the tree window (widget) to be selected. | 8871 * handle: Handle to the tree window (widget) to be selected. |
8872 * item: Handle to the item to be selected. | 8872 * item: Handle to the item to be selected. |
8873 */ | 8873 */ |
8874 void API dw_tree_item_select(HWND handle, HTREEITEM item) | 8874 void API dw_tree_item_select(HWND handle, HTREEITEM item) |
8875 { | 8875 { |
8876 dw_window_set_data(handle, "_dw_select_item", (void *)1); | |
8877 TreeView_SelectItem(handle, item); | 8876 TreeView_SelectItem(handle, item); |
8878 dw_window_set_data(handle, "_dw_select_item", (void *)0); | |
8879 } | 8877 } |
8880 | 8878 |
8881 /* Delete all tree subitems */ | 8879 /* Delete all tree subitems */ |
8882 void _dw_tree_item_delete_recursive(HWND handle, HTREEITEM node) | 8880 void _dw_tree_item_delete_recursive(HWND handle, HTREEITEM node) |
8883 { | 8881 { |