Mercurial > dwindows
diff 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 |
line wrap: on
line diff
--- a/dwtest.c Fri Apr 11 12:26:54 2003 +0000 +++ b/dwtest.c Fri Apr 11 13:35:50 2003 +0000 @@ -386,11 +386,11 @@ return 0; } -int DWSIGNAL switch_page_cb( HWND window, int page_num, void *itemdata ) +int DWSIGNAL switch_page_cb( HWND window, unsigned long page_num, void *itemdata ) { -FILE *fp=fopen("log","a"); - fprintf(fp,"DW_SIGNAL_SWITCH_PAGE: Window: %x PageNum: %d Itemdata: %x\n", (unsigned int)window, (unsigned int)page_num, (unsigned int)itemdata ); -fclose(fp); + FILE *fp=fopen("log","a"); + fprintf(fp,"DW_SIGNAL_SWITCH_PAGE: Window: %x PageNum: %u Itemdata: %x\n", (unsigned int)window, (unsigned int)page_num, (unsigned int)itemdata ); + fclose(fp); return 0; }