Only perform component list redraw hack on 95/NT4 to avoid flicker
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7190 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
d62a4a6a21
commit
85bd2746a0
2 changed files with 8 additions and 6 deletions
|
@ -1236,18 +1236,19 @@ static void FORCE_INLINE NSISCALL RefreshComponents(HWND hwTree, HTREEITEM *item
|
|||
TreeView_SetItem(hwTree, &item);
|
||||
}
|
||||
|
||||
// workaround for bug #1397031
|
||||
// workaround for bug #1397031 A.K.A #434
|
||||
//
|
||||
// windows 95 doesn't erase the background of the state image
|
||||
// before it draws a new one. because of this parts of the old
|
||||
// Windows 95 & NT4 doesn't erase the background of the state image
|
||||
// before it draws a new one. Because of this parts of the old
|
||||
// state image will show where the new state image is masked.
|
||||
//
|
||||
// to solve this, the following line forces the background to
|
||||
// be erased. sadly, this redraws the entire control. it might
|
||||
// To solve this, the following line forces the background to
|
||||
// be erased. sadly, this redraws the entire control. It might
|
||||
// be a good idea to figure out where the state images are and
|
||||
// redraw only those.
|
||||
|
||||
InvalidateRect(hwTree, NULL, TRUE);
|
||||
if (IsWin95NT4()) // Checking for < IE4 is probably better but more work
|
||||
InvalidateRect(hwTree, NULL, TRUE);
|
||||
}
|
||||
|
||||
int NSISCALL TreeGetSelectedSection(HWND tree, BOOL mouse)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue