checking in fixes for bug #6569 - confirmation on clicking the finish button

git-svn-id: svn://10.0.0.236/trunk@50348 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
varada%netscape.com
1999-10-11 19:23:25 +00:00
parent a8e3ac3d29
commit fb01047518
2 changed files with 13 additions and 1 deletions

View File

@@ -1009,6 +1009,16 @@ BOOL CWizardMachineApp::interpret(CString cmds, WIDGET *curWidget)
_mkdir (tmpPath);
}
}
else if (strcmp(pcmd, "Message") ==0)
{
CString DisplayVal = replaceVars(parms,NULL);
int retval= AfxMessageBox((LPCTSTR)(DisplayVal),MB_YESNO);
if (retval == IDYES)
return TRUE;
else
return FALSE;
}
else if (strcmp(pcmd, "DisplayImage") == 0)
{
// This is to dsiplay an image in a separate dialog

View File

@@ -1269,9 +1269,11 @@ HBRUSH CWizardUI::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
BOOL CWizardUI::OnWizardFinish()
{
// TODO: Add your specialized code here and/or call the base class
UpdateGlobals();
if (CurrentNode->navControls->onNextAction)
if (!theApp.interpret(CurrentNode->navControls->onNextAction, NULL))
return FALSE;
return CPropertyPage::OnWizardFinish();
}