mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
comctl32: Fix tab-control flickering.
This commit is contained in:
parent
0cbf8062a1
commit
1911eed08e
@ -261,9 +261,11 @@ static inline LRESULT TAB_SetCurSel (TAB_INFO *infoPtr, INT iItem)
|
||||
|
||||
if (iItem >= 0 && iItem < infoPtr->uNumItem) {
|
||||
prevItem=infoPtr->iSelected;
|
||||
infoPtr->iSelected=iItem;
|
||||
TAB_EnsureSelectionVisible(infoPtr);
|
||||
TAB_InvalidateTabArea(infoPtr);
|
||||
if (infoPtr->iSelected != iItem) {
|
||||
infoPtr->iSelected=iItem;
|
||||
TAB_EnsureSelectionVisible(infoPtr);
|
||||
TAB_InvalidateTabArea(infoPtr);
|
||||
}
|
||||
}
|
||||
return prevItem;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user