From 3f38468f234142038ace0202a8c0235395c54da5 Mon Sep 17 00:00:00 2001 From: Matthias Kupfer Date: Mon, 21 Jul 2008 15:52:52 +0000 Subject: [PATCH] avoid flicker when registering components svn path=/trunk/; revision=34638 --- reactos/dll/win32/syssetup/wizard.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/syssetup/wizard.c b/reactos/dll/win32/syssetup/wizard.c index 58bd2182f31..8dada65e5f6 100644 --- a/reactos/dll/win32/syssetup/wizard.c +++ b/reactos/dll/win32/syssetup/wizard.c @@ -1813,6 +1813,7 @@ ProcessPageDlgProc(HWND hwndDlg, { PSETUPDATA SetupData; PREGISTRATIONNOTIFY RegistrationNotify; + static UINT oldActivityID = -1; WCHAR Title[64]; /* Retrieve pointer to the global setup data */ @@ -1864,13 +1865,18 @@ ProcessPageDlgProc(HWND hwndDlg, { WCHAR Activity[64]; RegistrationNotify = (PREGISTRATIONNOTIFY) lParam; - if (0 != LoadStringW(hDllInstance, RegistrationNotify->ActivityID, + // update if necessary only + if (oldActivityID != RegistrationNotify->ActivityID) + { + if (0 != LoadStringW(hDllInstance, RegistrationNotify->ActivityID, Activity, sizeof(Activity) / sizeof(Activity[0]))) { SendDlgItemMessageW(hwndDlg, IDC_ACTIVITY, WM_SETTEXT, 0, (LPARAM) Activity); } + oldActivityID = RegistrationNotify->ActivityID; + } SendDlgItemMessageW(hwndDlg, IDC_ITEM, WM_SETTEXT, 0, (LPARAM)(NULL == RegistrationNotify->CurrentItem ? L"" : RegistrationNotify->CurrentItem));