diff --git a/cck/wizard/NewConfigDialog.cpp b/cck/wizard/NewConfigDialog.cpp index 34eea63f6253..c04a7a4c5dbc 100644 --- a/cck/wizard/NewConfigDialog.cpp +++ b/cck/wizard/NewConfigDialog.cpp @@ -33,7 +33,7 @@ #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif - +extern CString DlgTitle; ///////////////////////////////////////////////////////////////////////////// // CNewConfigDialog dialog @@ -85,7 +85,7 @@ BOOL CNewConfigDialog::OnInitDialog() CDialog::OnInitDialog(); // TODO: Add extra initialization here - CString DlgTitle = GetGlobal("DialogTitle"); +// CString DlgTitle = GetGlobal("DialogTitle"); if (!DlgTitle.IsEmpty()) { SetWindowText(DlgTitle); diff --git a/cck/wizard/wizard.cpp b/cck/wizard/wizard.cpp index 1dc4b414f2a8..c4a51885e661 100644 --- a/cck/wizard/wizard.cpp +++ b/cck/wizard/wizard.cpp @@ -5,6 +5,8 @@ #include "NewConfigDialog.h" #include "NewDialog.h" +CString DlgTitle = ""; + extern "C" __declspec(dllexport) void NewNCIDialog(CString parms, WIDGET* curWidget) { @@ -27,7 +29,9 @@ BOOL Config(CString globalsName, CString DialogTitle, WIDGET* curWidget) CNewConfigDialog newDlg; if (!DialogTitle.IsEmpty()) - SetGlobal("DialogTitle", "Create Copy"); + DlgTitle = "Create Copy"; + else + DlgTitle = ""; newDlg.DoModal(); CString configField = newDlg.GetConfigName();