[ACPPAGE] Fix the shell extension asking to add an empty layer.
authorMark Jansen <mark.jansen@reactos.org>
Sun, 30 Jul 2017 12:46:53 +0000 (12:46 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Sun, 30 Jul 2017 12:46:53 +0000 (12:46 +0000)
svn path=/trunk/; revision=75454

reactos/dll/shellext/acppage/CLayerUIPropPage.cpp

index fb4cd44..12bd72c 100644 (file)
@@ -455,7 +455,7 @@ static void OnAdd(HWND hWnd)
         Index = ListBox_AddString(List, Str);
     ListBox_SetCurSel(List, Index);
     ListboxChanged(hWnd);
-    ComboBox_SetText(Combo, TEXT(""));
+    ComboBox_SetCurSel(Combo, -1);
     SetFocus(Combo);
 }
 
@@ -523,6 +523,7 @@ INT_PTR CALLBACK CLayerUIPropPage::EditModesProc(HWND hWnd, UINT uMsg, WPARAM wP
             ListBox_GetText(List, Cur, Str);
             ListBox_DeleteString(List, Cur);
             HWND Combo = GetDlgItem(hWnd, IDC_NEWCOMPATIBILITYMODE);
+            ComboBox_SetCurSel(Combo, -1);
             ComboBox_SetText(Combo, Str);
             ListboxChanged(hWnd);
             ComboBox_SetEditSel(Combo, 30000, 30000);