Mercurial > dwindows
changeset 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 | b6491cefa512 |
children | 97029f1f29de |
files | win/dw.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/win/dw.c Wed Apr 09 09:55:10 2003 +0000 +++ b/win/dw.c Wed Apr 09 09:57:48 2003 +0000 @@ -1578,7 +1578,7 @@ else if(tmp->message == TCN_SELCHANGE) { NMHDR FAR *tem=(NMHDR FAR *)mp2; - if(tmp->window == tem->hwndFrom) + if(tmp->window == tem->hwndFrom && tem->code == tmp->message) { int (*switchpagefunc)(HWND, int, void *) = tmp->signalfunction; int num=TabCtrl_GetCurSel(tem->hwndFrom);