From 977392c4a20aa7f6110f3cac6d9fd3f71927ffd0 Mon Sep 17 00:00:00 2001 From: David Grant Date: Sun, 7 Nov 1999 05:36:44 +0000 Subject: [PATCH] - Proper initialization of cchTextMax field was added for TVN_GETDISPINFO notification message. - TVM_SETITEM should update 'mask' field to synchronize it with current item state. --- dlls/comctl32/treeview.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index e2ab23e461a..8fc9f0b1248 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -924,6 +924,8 @@ TREEVIEW_SetItemA (HWND hwnd, WPARAM wParam, LPARAM lParam) } } + wineItem->mask |= tvItem->mask; + return TRUE; } @@ -2433,6 +2435,7 @@ TREEVIEW_SendDispInfoNotify (HWND hwnd, TREEVIEW_ITEM *wineItem, tvdi.item.state = wineItem->state; tvdi.item.lParam = wineItem->lParam; tvdi.item.pszText = COMCTL32_Alloc (128*sizeof(char)); + tvdi.item.cchTextMax = 128; buf = tvdi.item.pszText; retval=(BOOL)SendMessageA (