mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
Insert the item before calling a SetFirstVisible which can generate a
WM_PAINT message.
This commit is contained in:
parent
0f586c4444
commit
79a11a1f21
@ -1061,9 +1061,9 @@ TREEVIEW_InsertItemA(TREEVIEW_INFO *infoPtr, LPARAM lParam)
|
||||
switch ((DWORD)insertAfter)
|
||||
{
|
||||
case (DWORD)TVI_FIRST:
|
||||
TREEVIEW_InsertBefore(newItem, parentItem->firstChild, parentItem);
|
||||
if (infoPtr->firstVisible == parentItem->firstChild)
|
||||
TREEVIEW_SetFirstVisible(infoPtr, newItem, TRUE);
|
||||
TREEVIEW_InsertBefore(newItem, parentItem->firstChild, parentItem);
|
||||
break;
|
||||
|
||||
case (DWORD)TVI_LAST:
|
||||
|
Loading…
Reference in New Issue
Block a user