Mercurial > dwindows
comparison dwtest.c @ 346:81fae15885d7
Implemented switch-page on OS/2, and changed the signal prototype to
unsigned long instead of int. Also dw_notebook_page_query should
return unsigned long as well.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 11 Apr 2003 13:35:50 +0000 |
parents | a2f72b5d5d0a |
children | fa6aeb52d51a |
comparison
equal
deleted
inserted
replaced
345:599644ca9064 | 346:81fae15885d7 |
---|---|
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 ); |
385 dw_window_set_text( statline, buf); | 385 dw_window_set_text( statline, buf); |
386 return 0; | 386 return 0; |
387 } | 387 } |
388 | 388 |
389 int DWSIGNAL switch_page_cb( HWND window, int page_num, void *itemdata ) | 389 int DWSIGNAL switch_page_cb( HWND window, unsigned long page_num, void *itemdata ) |
390 { | 390 { |
391 FILE *fp=fopen("log","a"); | 391 FILE *fp=fopen("log","a"); |
392 fprintf(fp,"DW_SIGNAL_SWITCH_PAGE: Window: %x PageNum: %d Itemdata: %x\n", (unsigned int)window, (unsigned int)page_num, (unsigned int)itemdata ); | 392 fprintf(fp,"DW_SIGNAL_SWITCH_PAGE: Window: %x PageNum: %u Itemdata: %x\n", (unsigned int)window, (unsigned int)page_num, (unsigned int)itemdata ); |
393 fclose(fp); | 393 fclose(fp); |
394 return 0; | 394 return 0; |
395 } | 395 } |
396 | 396 |
397 void archive_add(void) | 397 void archive_add(void) |
398 { | 398 { |