comparison dwtest.c @ 328:e00aff2b899e

Tree item handles are now of the type HTREEITEM instead of HWND since they were rarely actually window handles.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 08 Apr 2003 17:47:31 +0000
parents 3204b978e077
children b6491cefa512
comparison
equal deleted inserted replaced
327:3204b978e077 328:e00aff2b899e
374 sprintf(buf,"DW_SIGNAL_LIST_SELECT: Window: %d Item: %d", (unsigned int)window, item ); 374 sprintf(buf,"DW_SIGNAL_LIST_SELECT: Window: %d Item: %d", (unsigned int)window, item );
375 dw_window_set_text( statline, buf); 375 dw_window_set_text( statline, buf);
376 return 0; 376 return 0;
377 } 377 }
378 378
379 int DWSIGNAL item_select_cb( HWND window, HWND item, char *text, void *data, void *itemdata ) 379 int DWSIGNAL item_select_cb( HWND window, HTREEITEM item, char *text, void *data, void *itemdata )
380 { 380 {
381 char buf[200]; 381 char buf[200];
382 HWND statline = (HWND)data; 382 HWND statline = (HWND)data;
383 383
384 sprintf(buf,"DW_SIGNAL_ITEM_SELECT: Window: %x Item: %x Text: %s Itemdata: %x", (unsigned int)window, (unsigned int)item, text, (unsigned int)itemdata ); 384 sprintf(buf,"DW_SIGNAL_ITEM_SELECT: Window: %x Item: %x Text: %s Itemdata: %x", (unsigned int)window, (unsigned int)item, text, (unsigned int)itemdata );
502 dw_signal_connect(mainwindow, DW_SIGNAL_KEY_PRESS, DW_SIGNAL_FUNC(keypress_callback), NULL); 502 dw_signal_connect(mainwindow, DW_SIGNAL_KEY_PRESS, DW_SIGNAL_FUNC(keypress_callback), NULL);
503 } 503 }
504 504
505 void tree_add(void) 505 void tree_add(void)
506 { 506 {
507 HWND t1,t2,t3,t4,t5,t6; 507 HTREEITEM t1,t2,t3,t4,t5,t6;
508 508
509 /* create a box to pack into the notebook page */ 509 /* create a box to pack into the notebook page */
510 treebox = dw_box_new(BOXHORZ, 2); 510 treebox = dw_box_new(BOXHORZ, 2);
511 dw_box_pack_start( notebookbox3, treebox, 500, 200, TRUE, TRUE, 0); 511 dw_box_pack_start( notebookbox3, treebox, 500, 200, TRUE, TRUE, 0);
512 512