Mercurial > dwindows
changeset 502:56ea525c1a24
Only activate the container select callback when the item state changes,
not other item changes. (Fixes an infinite loop in Mark's testcase).
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 17 Jan 2004 16:19:02 +0000 |
parents | 8267a3066476 |
children | f3ed8dda02f8 |
files | win/dw.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/win/dw.c Fri Dec 19 03:25:49 2003 +0000 +++ b/win/dw.c Sat Jan 17 16:19:02 2004 +0000 @@ -1615,6 +1615,7 @@ tmp->message == TVN_ITEMEXPANDED) { NMTREEVIEW FAR *tem=(NMTREEVIEW FAR *)mp2; + NMLISTVIEW FAR *lem=(NMLISTVIEW FAR *)mp2; char tmpbuf[100]; GetClassName(tem->hdr.hwndFrom, tmpbuf, 99); @@ -1689,7 +1690,7 @@ } else if(strnicmp(tmpbuf, WC_LISTVIEW, strlen(WC_LISTVIEW)+1)==0) { - if(tem->hdr.code == LVN_ITEMCHANGED && tmp->message == TVN_SELCHANGED) + if((lem->hdr.code == LVN_ITEMCHANGED && (lem->uChanged & LVIF_STATE)) && tmp->message == TVN_SELCHANGED) { if(tmp->window == tem->hdr.hwndFrom) {