[ros-diffs] [mkupfer] 34638: avoid flicker when registering components

mkupfer at svn.reactos.org mkupfer at svn.reactos.org
Mon Jul 21 17:52:53 CEST 2008


Author: mkupfer
Date: Mon Jul 21 10:52:52 2008
New Revision: 34638

URL: http://svn.reactos.org/svn/reactos?rev=34638&view=rev
Log:
avoid flicker when registering components

Modified:
    trunk/reactos/dll/win32/syssetup/wizard.c

Modified: trunk/reactos/dll/win32/syssetup/wizard.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/wizard.c?rev=34638&r1=34637&r2=34638&view=diff
==============================================================================
--- trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] Mon Jul 21 10:52:52 2008
@@ -1813,6 +1813,7 @@
 {
   PSETUPDATA SetupData;
   PREGISTRATIONNOTIFY RegistrationNotify;
+  static UINT oldActivityID = -1;
   WCHAR Title[64];
 
   /* Retrieve pointer to the global setup data */
@@ -1864,13 +1865,18 @@
         {
           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));



More information about the Ros-diffs mailing list