Skip to content

Commit a4554c0

Browse files
committed
[ZIPFLDR] Enable / disable the correct wizard buttons
1 parent f43a7b8 commit a4554c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dll/shellext/zipfldr/CZipExtract.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ class CZipExtract :
163163
m_pExtract->m_DirectoryChanged = false;
164164
::EnableWindow(GetDlgItem(IDC_PASSWORD), FALSE); /* Not supported for now */
165165
GetParent().CenterWindow(::GetDesktopWindow());
166+
SetWizardButtons(PSWIZB_NEXT);
166167
return 0;
167168
}
168169

@@ -171,6 +172,7 @@ class CZipExtract :
171172
::EnableWindow(GetDlgItem(IDC_BROWSE), FALSE);
172173
::EnableWindow(GetDlgItem(IDC_DIRECTORY), FALSE);
173174
::EnableWindow(GetDlgItem(IDC_PASSWORD), FALSE);
175+
SetWizardButtons(0);
174176

175177
if (m_pExtract->m_DirectoryChanged)
176178
UpdateDirectory();
@@ -183,6 +185,7 @@ class CZipExtract :
183185
::EnableWindow(GetDlgItem(IDC_BROWSE), TRUE);
184186
::EnableWindow(GetDlgItem(IDC_DIRECTORY), TRUE);
185187
::EnableWindow(GetDlgItem(IDC_PASSWORD), FALSE); /* Not supported for now */
188+
SetWizardButtons(PSWIZB_NEXT);
186189

187190
return TRUE;
188191
}

0 commit comments

Comments
 (0)