- 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.
This commit is contained in:
David Grant 1999-11-07 05:36:44 +00:00 committed by Alexandre Julliard
parent c6a03a70dd
commit 977392c4a2
1 changed files with 3 additions and 0 deletions

View File

@ -924,6 +924,8 @@ TREEVIEW_SetItemA (HWND hwnd, WPARAM wParam, LPARAM lParam)
} }
} }
wineItem->mask |= tvItem->mask;
return TRUE; return TRUE;
} }
@ -2433,6 +2435,7 @@ TREEVIEW_SendDispInfoNotify (HWND hwnd, TREEVIEW_ITEM *wineItem,
tvdi.item.state = wineItem->state; tvdi.item.state = wineItem->state;
tvdi.item.lParam = wineItem->lParam; tvdi.item.lParam = wineItem->lParam;
tvdi.item.pszText = COMCTL32_Alloc (128*sizeof(char)); tvdi.item.pszText = COMCTL32_Alloc (128*sizeof(char));
tvdi.item.cchTextMax = 128;
buf = tvdi.item.pszText; buf = tvdi.item.pszText;
retval=(BOOL)SendMessageA ( retval=(BOOL)SendMessageA (