- 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:
parent
c6a03a70dd
commit
977392c4a2
|
@ -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 (
|
||||||
|
|
Loading…
Reference in New Issue