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;
|
if (iItem < 0 || iItem >= infoPtr->uNumItem) return FALSE;
|
||||||
|
|
||||||
|
TAB_InvalidateTabArea(infoPtr);
|
||||||
item = TAB_GetItem(infoPtr, iItem);
|
item = TAB_GetItem(infoPtr, iItem);
|
||||||
Free(item->pszText);
|
Free(item->pszText);
|
||||||
Free(item);
|
Free(item);
|
||||||
infoPtr->uNumItem--;
|
infoPtr->uNumItem--;
|
||||||
DPA_DeletePtr(infoPtr->items, iItem);
|
DPA_DeletePtr(infoPtr->items, iItem);
|
||||||
|
|
||||||
TAB_InvalidateTabArea(infoPtr);
|
|
||||||
|
|
||||||
if (infoPtr->uNumItem == 0)
|
if (infoPtr->uNumItem == 0)
|
||||||
{
|
{
|
||||||
if (infoPtr->iHotTracked >= 0)
|
if (infoPtr->iHotTracked >= 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user