From b682277db5438b5edd91ffb625e7b5e5ce646567 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 14 Jan 2006 15:32:56 +0000 Subject: [PATCH] added a comment explaining the workaround git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4480 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Ui.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index 10499936..14f50894 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -1105,6 +1105,17 @@ static void FORCE_INLINE NSISCALL RefreshComponents(HWND hwTree, HTREEITEM *item TreeView_SetItem(hwTree, &item); } + // workaround for bug #1397031 + // + // windows 95 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 + // be a good idea to figure out where the state images are and + // redraw only those. + InvalidateRect(hwTree, NULL, TRUE); }