gecko-dev/cck/driver/SumDlg.cpp

96 строки
2.0 KiB
C++
Исходник Обычный вид История

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();
for(int i=0; i< GlobalArrayIndex; i++)
1999-05-22 04:06:00 +04:00
{
if (GlobalWidgetArray[i].type != "RadioButton"
&& GlobalWidgetArray[i].type != "Text"
&& GlobalWidgetArray[i].type != "BoldText"
&& GlobalWidgetArray[i].type != "Button"
&& GlobalWidgetArray[i].type != "GroupBox"
&& GlobalWidgetArray[i].type != "BoldGroup" )
{
if (GlobalWidgetArray[i].name != "")
{
1999-05-22 04:06:00 +04:00
tmp1=GlobalWidgetArray[i].name;
tmp2=GlobalWidgetArray[i].value;
str1 += "\t" + tmp1;
str1 += "\t=";
str1 += tmp2;
str1 += "\r\n";
}
1999-05-22 04:06:00 +04:00
}
}
CEdit *ebptr1 =(CEdit *) GetDlgItem(IDC_EDIT1);
ebptr1->SetWindowText(str1);
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
}