1999-05-22 04:06:00 +04:00
|
|
|
// SumDlg.cpp : implementation file
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
1999-10-23 03:42:02 +04:00
|
|
|
#include "globals.h"
|
1999-05-22 04:06:00 +04:00
|
|
|
#include "WizardMachine.h"
|
|
|
|
#include "SumDlg.h"
|
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
#define new DEBUG_NEW
|
|
|
|
#undef THIS_FILE
|
|
|
|
static char THIS_FILE[] = __FILE__;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
CString stringerx1 ="name1";
|
|
|
|
|
|
|
|
CString stringer2x1 ="value1";
|
|
|
|
|
|
|
|
CString stringerx2 ="name2";
|
|
|
|
|
|
|
|
CString stringer2x2 ="value2";
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CSumDlg dialog
|
|
|
|
|
|
|
|
|
|
|
|
CSumDlg::CSumDlg(CWnd* pParent /*=NULL*/)
|
|
|
|
: CDialog(CSumDlg::IDD, pParent)
|
|
|
|
{
|
|
|
|
//{{AFX_DATA_INIT(CSumDlg)
|
|
|
|
// NOTE: the ClassWizard will add member initialization here
|
|
|
|
//}}AFX_DATA_INIT
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CSumDlg::DoDataExchange(CDataExchange* pDX)
|
|
|
|
{
|
|
|
|
CDialog::DoDataExchange(pDX);
|
|
|
|
//{{AFX_DATA_MAP(CSumDlg)
|
|
|
|
// NOTE: the ClassWizard will add DDX and DDV calls here
|
|
|
|
//}}AFX_DATA_MAP
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CSumDlg, CDialog)
|
|
|
|
//{{AFX_MSG_MAP(CSumDlg)
|
|
|
|
//}}AFX_MSG_MAP
|
|
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CSumDlg message handlers
|
|
|
|
|
|
|
|
int CSumDlg::DoModal()
|
|
|
|
{
|
|
|
|
// TODO: Add your specialized code here and/or call the base class
|
|
|
|
|
|
|
|
return CDialog::DoModal();
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL CSumDlg::OnInitDialog()
|
|
|
|
{
|
|
|
|
CString tmp1,tmp2,str1,str2;
|
|
|
|
CDialog::OnInitDialog();
|
1999-10-25 05:54:32 +04:00
|
|
|
|
|
|
|
for(int i=0; i< GlobalArrayIndex; i++)
|
1999-05-22 04:06:00 +04:00
|
|
|
{
|
2000-03-28 01:34:55 +04:00
|
|
|
str2 = GlobalWidgetArray[i].name;
|
2001-06-14 22:19:21 +04:00
|
|
|
// Remove unnecessary keys (customizations not visible) in
|
|
|
|
// Show Configuration Information dialog
|
|
|
|
if ((str2=="Root") || (str2=="inifile") || (str2=="DefaultName")
|
|
|
|
|| (str2=="Organization") || (str2=="Department")
|
|
|
|
|| (str2=="Feedback") || (str2=="FeedbackChoice")
|
|
|
|
|| (str2=="FeedbackButtonName") || (str2=="CustomizationList")
|
|
|
|
|| (str2=="CreateReadmeIcon") || (str2=="CreateLicenseIcon")
|
|
|
|
|| (str2=="IntSetupBgBitmap") || (str2=="Company_Name")
|
|
|
|
|| (str2=="TechSupportNumber") || (str2=="NCIFileList")
|
|
|
|
|| (str2=="NCIFileEditor"))
|
|
|
|
continue;
|
1999-10-25 05:54:32 +04:00
|
|
|
if (GlobalWidgetArray[i].type != "RadioButton"
|
2000-03-28 01:34:55 +04:00
|
|
|
&& GlobalWidgetArray[i].type != "RadioGroup"
|
1999-10-25 05:54:32 +04:00
|
|
|
&& GlobalWidgetArray[i].type != "Text"
|
|
|
|
&& GlobalWidgetArray[i].type != "BoldText"
|
2000-03-28 23:48:46 +04:00
|
|
|
&& GlobalWidgetArray[i].type != "GlobalText"
|
1999-10-25 05:54:32 +04:00
|
|
|
&& GlobalWidgetArray[i].type != "Button"
|
2000-01-04 05:02:51 +03:00
|
|
|
&& GlobalWidgetArray[i].type != "GroupBox"
|
2000-03-28 01:34:55 +04:00
|
|
|
&& GlobalWidgetArray[i].type != "BoldGroup"
|
|
|
|
&& str2.Left(1) != "_")
|
1999-10-25 05:54:32 +04:00
|
|
|
{
|
|
|
|
if (GlobalWidgetArray[i].name != "")
|
|
|
|
{
|
2001-06-14 22:19:21 +04:00
|
|
|
// Display only visible customizations in the Show
|
|
|
|
// Configuration Information dialog
|
1999-05-22 04:06:00 +04:00
|
|
|
tmp1=GlobalWidgetArray[i].name;
|
2002-04-06 02:03:19 +04:00
|
|
|
tmp2 = ConvertUTF8toANSI(GlobalWidgetArray[i].value);
|
2000-05-05 03:49:57 +04:00
|
|
|
str1 += tmp1;
|
1999-05-22 04:06:00 +04:00
|
|
|
str1 += "\t=";
|
|
|
|
str1 += tmp2;
|
|
|
|
str1 += "\r\n";
|
1999-10-25 05:54:32 +04:00
|
|
|
}
|
1999-05-22 04:06:00 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CEdit *ebptr1 =(CEdit *) GetDlgItem(IDC_EDIT1);
|
|
|
|
ebptr1->SetWindowText(str1);
|
|
|
|
|
1999-10-25 05:54:32 +04:00
|
|
|
|
1999-05-22 04:06:00 +04:00
|
|
|
// TODO: Add extra initialization here
|
|
|
|
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
|
|
}
|