Mercurial > dwindows
comparison win/dw.c @ 334:0a15a1f3fbed
Check that the notification message is actually TCN_SELCHANGE.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 09 Apr 2003 09:57:48 +0000 |
parents | 7b0f00729a32 |
children | a2f72b5d5d0a |
comparison
equal
deleted
inserted
replaced
333:b6491cefa512 | 334:0a15a1f3fbed |
---|---|
1576 } | 1576 } |
1577 } | 1577 } |
1578 else if(tmp->message == TCN_SELCHANGE) | 1578 else if(tmp->message == TCN_SELCHANGE) |
1579 { | 1579 { |
1580 NMHDR FAR *tem=(NMHDR FAR *)mp2; | 1580 NMHDR FAR *tem=(NMHDR FAR *)mp2; |
1581 if(tmp->window == tem->hwndFrom) | 1581 if(tmp->window == tem->hwndFrom && tem->code == tmp->message) |
1582 { | 1582 { |
1583 int (*switchpagefunc)(HWND, int, void *) = tmp->signalfunction; | 1583 int (*switchpagefunc)(HWND, int, void *) = tmp->signalfunction; |
1584 int num=TabCtrl_GetCurSel(tem->hwndFrom); | 1584 int num=TabCtrl_GetCurSel(tem->hwndFrom); |
1585 result = switchpagefunc(tem->hwndFrom, num, tmp->data); | 1585 result = switchpagefunc(tem->hwndFrom, num, tmp->data); |
1586 } | 1586 } |