Скачиваний:
67
Добавлен:
01.05.2014
Размер:
1.76 Кб
Скачать
// inemaAddDialog.cpp : implementation file
//

#include "stdafx.h"
#include "TheOne.h"
#include "inemaAddDialog.h"
#include ".\inemaadddialog.h"

#include "tonecinema.h"


// CinemaAddDialog dialog

IMPLEMENT_DYNCREATE(CinemaAddDialog, CDHtmlDialog)

CinemaAddDialog::CinemaAddDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CinemaAddDialog::IDD, pParent)
	, m_sCinemaName(_T(""))
	, m_sCinemaAbout(_T(""))
	, m_sCinemaAddress(_T(""))
{
}

CinemaAddDialog::~CinemaAddDialog()
{
}

void CinemaAddDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_CINEMA_ADD_NAME, m_sCinemaName);
	DDX_Text(pDX, IDC_CINEMA_ADD_ABOUT, m_sCinemaAbout);
	DDX_Text(pDX, IDC_CINEMA_ADD_ADDRESS, m_sCinemaAddress);
	DDX_Control(pDX, IDC_CINEMA_ADD_NAME, m_editName);
}

BOOL CinemaAddDialog::OnInitDialog()
{
	CDialog::OnInitDialog();
	return TRUE;  // return TRUE  unless you set the focus to a control
}

BEGIN_MESSAGE_MAP(CinemaAddDialog, CDialog)
//	ON_BN_CLICKED(IDOK, OnBnClickedOk)
END_MESSAGE_MAP()

// CinemaAddDialog message handlers

HRESULT CinemaAddDialog::OnButtonOK(IHTMLElement* /*pElement*/)
{
	OnOK();
	return S_OK;  // return TRUE  unless you set the focus to a control
}

HRESULT CinemaAddDialog::OnButtonCancel(IHTMLElement* /*pElement*/)
{
	OnCancel();
	return S_OK;  // return TRUE  unless you set the focus to a control
}

//void CinemaAddDialog::OnBnClickedOk()
//{
//	CMapStringToPtr map;
//	m_editName.GetWindowText(m_sCinemaName);	
//
//	map[TO_CINEMA_NAME] = &m_sCinemaName;
//	map[TO_CINEMA_ADDRESS] = &m_sCinemaAddress;
//	map[TO_CINEMA_ABOUT] = &m_sCinemaAbout;
//
//	CTOneCinema cinenma;
//	cinenma.AddEntity(map);
//
//	OnOK();
//}
Соседние файлы в папке TheOne