Mercurial > dwindows
comparison win/dw.c @ 344:6a374f337d1f
Use dw_notebook_page_query() to query the logical notebook page id.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 11 Apr 2003 12:22:10 +0000 |
parents | bab5cd8dd93f |
children | 81fae15885d7 |
comparison
equal
deleted
inserted
replaced
343:bab5cd8dd93f | 344:6a374f337d1f |
---|---|
1580 { | 1580 { |
1581 NMHDR FAR *tem=(NMHDR FAR *)mp2; | 1581 NMHDR FAR *tem=(NMHDR FAR *)mp2; |
1582 if(tmp->window == tem->hwndFrom && tem->code == tmp->message) | 1582 if(tmp->window == tem->hwndFrom && tem->code == tmp->message) |
1583 { | 1583 { |
1584 int (*switchpagefunc)(HWND, int, void *) = tmp->signalfunction; | 1584 int (*switchpagefunc)(HWND, int, void *) = tmp->signalfunction; |
1585 int num=TabCtrl_GetCurSel(tem->hwndFrom); | 1585 int num=dw_notebook_page_query(tem->hwndFrom); |
1586 result = switchpagefunc(tem->hwndFrom, num, tmp->data); | 1586 result = switchpagefunc(tem->hwndFrom, num, tmp->data); |
1587 } | 1587 } |
1588 } | 1588 } |
1589 } | 1589 } |
1590 break; | 1590 break; |