Mercurial > dwindows
comparison dwtest.c @ 1883:0fecaedb83fa
Add optional itemdata field to ITEM_ENTER callback functon.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 15 Aug 2013 18:51:56 +0000 |
parents | 6949c73e30fd |
children | 71780cf68aa2 |
comparison
equal
deleted
inserted
replaced
1882:39ef93f82f04 | 1883:0fecaedb83fa |
---|---|
741 /* Redraw the window */ | 741 /* Redraw the window */ |
742 update_render(); | 742 update_render(); |
743 return TRUE; | 743 return TRUE; |
744 } | 744 } |
745 | 745 |
746 int DWSIGNAL item_enter_cb( HWND window, char *text, void *data ) | 746 int DWSIGNAL item_enter_cb( HWND window, char *text, void *data, void *itemdata ) |
747 { | 747 { |
748 char buf[200]; | 748 char buf[200]; |
749 HWND statline = (HWND)data; | 749 HWND statline = (HWND)data; |
750 | 750 |
751 sprintf(buf,"DW_SIGNAL_ITEM_ENTER: Window: %x Text: %s", DW_POINTER_TO_UINT(window), text ); | 751 sprintf(buf,"DW_SIGNAL_ITEM_ENTER: Window: %x Text: %s Itemdata: %x", DW_POINTER_TO_UINT(window), text, DW_POINTER_TO_UINT(itemdata) ); |
752 dw_window_set_text( statline, buf); | 752 dw_window_set_text( statline, buf); |
753 return 0; | 753 return 0; |
754 } | 754 } |
755 | 755 |
756 int DWSIGNAL item_context_cb( HWND window, char *text, int x, int y, void *data, void *itemdata ) | 756 int DWSIGNAL item_context_cb( HWND window, char *text, int x, int y, void *data, void *itemdata ) |