Most of CopyDir ready

git-svn-id: svn://10.0.0.236/trunk@49786 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
selmer%netscape.com
1999-10-05 02:22:36 +00:00
parent e62c5f3e87
commit 016eba860a
3 changed files with 93 additions and 2 deletions

View File

@@ -685,6 +685,35 @@ BOOL CWizardUI::OnCommand(WPARAM wParam, LPARAM lParam)
{
if (curWidget->action.function == "command")
theApp.interpret(curWidget->action.parameters, curWidget);
else if (curWidget->action.function == "NewConfig") {
CNewConfigDialog newDlg;
newDlg.DoModal();
CString configField = newDlg.GetConfigName();
CString newDir = CString(customizationPath);
newDir += configField;
_mkdir(newDir);
/**
char srcCache[250];
char destCache[250];
strcpy(srcCache, Path);
strcat(srcCache, "cck.che");
strcpy(destCache, newDir);
strcat(destCache, "\\cck.che");
CopyFile(srcCache, destCache, FALSE);
**/
WIDGET* tmpWidget = theApp.findWidget((char*) (LPCTSTR)curWidget->target);
CString tmpFunction = tmpWidget->action.function;
CString params = CString(tmpWidget->action.parameters);
theApp.GenerateList(tmpFunction, tmpWidget, params);
((CComboBox*)tmpWidget->control)->SelectString(0, configField);
// remembering the widget name for subsequent .che file operations
//customizationWidgetName = tmpWidget->name;
}
}
else
Progress();