Mercurial > dwindows
diff win/dw.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 | 6a374f337d1f |
children | 2216e65ad2ae |
line wrap: on
line diff
--- a/win/dw.c Fri Apr 11 12:26:54 2003 +0000 +++ b/win/dw.c Fri Apr 11 13:35:50 2003 +0000 @@ -1581,9 +1581,10 @@ NMHDR FAR *tem=(NMHDR FAR *)mp2; if(tmp->window == tem->hwndFrom && tem->code == tmp->message) { - int (*switchpagefunc)(HWND, int, void *) = tmp->signalfunction; - int num=dw_notebook_page_query(tem->hwndFrom); + int (*switchpagefunc)(HWND, unsigned long, void *) = tmp->signalfunction; + unsigned long num=dw_notebook_page_query(tem->hwndFrom); result = switchpagefunc(tem->hwndFrom, num, tmp->data); + tmp = NULL; } } } @@ -5055,7 +5056,7 @@ * Parameters: * handle: Handle to the notebook widget. */ -unsigned int API dw_notebook_page_query(HWND handle) +unsigned long API dw_notebook_page_query(HWND handle) { NotebookPage **array = (NotebookPage **)dw_window_get_data(handle, "_dw_array"); int physid = TabCtrl_GetCurSel(handle);