ChangeLog Add LVHITTESTINFO debug helper. More tracing. --- dlls/comctl32/listview.c.Z5 2002-10-25 14:44:42.000000000 -0400 +++ dlls/comctl32/listview.c 2002-10-27 10:29:41.000000000 -0500 @@ -670,6 +670,17 @@ } +static char* debuglvhittestinfo(LPLVHITTESTINFO lpht) +{ + if (lpht) + { + char* buf = debug_getbuf(); + snprintf(buf, DEBUG_BUFFER_SIZE, "{pt=%s, flags=0x%x, iItem=%d, iSubItem=%d}", + debugpoint(&lpht->pt), lpht->flags, lpht->iItem, lpht->iSubItem); + return buf; + } else return "(null)"; +} + /******** Notification functions i************************************/ static LRESULT notify_hdr(LISTVIEW_INFO *infoPtr, INT code, LPNMHDR pnmh) @@ -709,7 +720,8 @@ static LRESULT notify_click(LISTVIEW_INFO *infoPtr, INT code, LVHITTESTINFO *lvht) { NMLISTVIEW nmlv; - + + TRACE("code=%d, lvht=%s\n", code, debuglvhittestinfo(lvht)); ZeroMemory(&nmlv, sizeof(nmlv)); nmlv.iItem = lvht->iItem; nmlv.iSubItem = lvht->iSubItem; -- Dimi.