// dlg.cpp : implementation file
//

#include "stdafx.h"
#include "contain.h"
#include "dlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// dlg dialog


dlg::dlg(CWnd* pParent /*=NULL*/)
	: CDialog(dlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(dlg)
	m_text = _T("");
	//}}AFX_DATA_INIT
}


void dlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(dlg)
	DDX_Text(pDX, IDC_EDIT1, m_text);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(dlg, CDialog)
	//{{AFX_MSG_MAP(dlg)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// dlg message handlers

void dlg::OnButton1() 
{
	m_text = "Диалоговое окно";
	UpdateData (false);
	// TODO: Add your control notification handler code here
	
}

void dlg::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData (true);
	CDialog::OnOK();
}
