comctl32: Invalidate before item is removed.
This commit is contained in:
parent
d967484ecc
commit
b32b969eb6
|
@ -2879,14 +2879,13 @@ static LRESULT TAB_DeleteItem (TAB_INFO *infoPtr, INT iItem)
|
|||
|
||||
if (iItem < 0 || iItem >= infoPtr->uNumItem) return FALSE;
|
||||
|
||||
TAB_InvalidateTabArea(infoPtr);
|
||||
item = TAB_GetItem(infoPtr, iItem);
|
||||
Free(item->pszText);
|
||||
Free(item);
|
||||
infoPtr->uNumItem--;
|
||||
DPA_DeletePtr(infoPtr->items, iItem);
|
||||
|
||||
TAB_InvalidateTabArea(infoPtr);
|
||||
|
||||
if (infoPtr->uNumItem == 0)
|
||||
{
|
||||
if (infoPtr->iHotTracked >= 0)
|
||||
|
|
Loading…
Reference in New Issue