Added the callback item processing for LISTVIEW_EndEditLabelT function.

Dimitrie Paun dimi at lattica.com
Tue May 17 15:49:12 CDT 2005


> Added the callback item processing for LISTVIEW_EndEditLabelT function.

I think this would be a bit more explicit and correct (is_textW() returns
false
if pszText == NULL) if the test is the other way around:

+    if (lpItem && lpItem->hdr.pszText == LPSTR_TEXTCALLBACKW)
+    {
+        LISTVIEW_InvalidateItem(infoPtr, infoPtr->nEditLabelItem);
+    }
+    else
+    {
+        ZeroMemory(&dispInfo, sizeof(dispInfo));
+        dispInfo.item.mask = LVIF_TEXT;
+        dispInfo.item.iItem = infoPtr->nEditLabelItem;
+        dispInfo.item.iSubItem = 0;
+        dispInfo.item.pszText = pszText;
+        dispInfo.item.cchTextMax = textlenT(pszText, isW);
+        return LISTVIEW_SetItemT(infoPtr, &dispInfo.item, isW);
+    }

-- 
Dimi.




More information about the wine-devel mailing list