Mercurial > dwindows
comparison win/dw.c @ 312:ff8f23594b15
Make sure itemdata is NULL for container callbacks.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 31 Mar 2003 10:20:08 +0000 |
parents | 24c1dfffe97e |
children | 83edbd751da9 |
comparison
equal
deleted
inserted
replaced
311:24c1dfffe97e | 312:ff8f23594b15 |
---|---|
2371 | 2371 |
2372 while(tmp) | 2372 while(tmp) |
2373 { | 2373 { |
2374 if(tmp->message == NM_RCLICK && tmp->window == hWnd) | 2374 if(tmp->message == NM_RCLICK && tmp->window == hWnd) |
2375 { | 2375 { |
2376 int (*containercontextfunc)(HWND, char *, int, int, void *) = tmp->signalfunction; | 2376 int (*containercontextfunc)(HWND, char *, int, int, void *, void *) = tmp->signalfunction; |
2377 LONG x,y; | 2377 LONG x,y; |
2378 LV_ITEM lvi; | 2378 LV_ITEM lvi; |
2379 int iItem; | 2379 int iItem; |
2380 LVHITTESTINFO lhi; | 2380 LVHITTESTINFO lhi; |
2381 | 2381 |
2401 | 2401 |
2402 /* Seems to be having lParam as 1 which really sucks */ | 2402 /* Seems to be having lParam as 1 which really sucks */ |
2403 if(lvi.lParam < 100) | 2403 if(lvi.lParam < 100) |
2404 lvi.lParam = 0; | 2404 lvi.lParam = 0; |
2405 | 2405 |
2406 containercontextfunc(tmp->window, (char *)lvi.lParam, x, y, tmp->data); | 2406 containercontextfunc(tmp->window, (char *)lvi.lParam, x, y, tmp->data, NULL); |
2407 tmp = NULL; | 2407 tmp = NULL; |
2408 } | 2408 } |
2409 if(tmp) | 2409 if(tmp) |
2410 tmp = tmp->next; | 2410 tmp = tmp->next; |
2411 } | 2411 } |