// DlgDuenLight.cpp : implementation file // #include "stdafx.h" #include "worldcreator.h" #include "DlgDuenLight.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDlgDuenLight dialog CDlgDuenLight::CDlgDuenLight(CWnd* pParent /*=NULL*/) : CDialog(CDlgDuenLight::IDD, pParent) { //{{AFX_DATA_INIT(CDlgDuenLight) m_uiBlue = 0; m_uiGreen = 0; m_iLeaf = 0; m_strPos = _T(""); m_fRange = 0.0f; m_uiRed = 0; //}}AFX_DATA_INIT } void CDlgDuenLight::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CDlgDuenLight) DDX_Text(pDX, IDC_BLUE, m_uiBlue); DDX_Text(pDX, IDC_GREEN, m_uiGreen); DDX_Text(pDX, IDC_LEAFEDIT, m_iLeaf); DDX_Text(pDX, IDC_POSEDIT, m_strPos); DDX_Text(pDX, IDC_RANGE, m_fRange); DDX_Text(pDX, IDC_RED, m_uiRed); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CDlgDuenLight, CDialog) //{{AFX_MSG_MAP(CDlgDuenLight) ON_BN_CLICKED(IDOK2, OnOk2) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDlgDuenLight message handlers BOOL CDlgDuenLight::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void CDlgDuenLight::OnOk2() { // TODO: Add your control notification handler code here UpdateData(TRUE); CDialog::OnOK(); }