myDilog1.cpp

来源:互联网 发布:windows note 编辑:程序博客网 时间:2024/05/17 03:49

// MyDialog1.cpp : implementation file
//

#include "stdafx.h"
#include "my.h"
#include "MyDialog1.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMyDialog1 dialog


CMyDialog1::CMyDialog1(CWnd* pParent /*=NULL*/)
 : CDialog(CMyDialog1::IDD, pParent)
{
 //{{AFX_DATA_INIT(CMyDialog1)
 m_EdictID = _T("");
 m_strName = _T("");
 m_strenglish = _T("");
 //}}AFX_DATA_INIT
}


void CMyDialog1::DoDataExchange(CDataExchange* pDX)
{
 CDialog::DoDataExchange(pDX);
 //{{AFX_DATA_MAP(CMyDialog1)
 DDX_Text(pDX, IDC_EDIT3, m_EdictID);
 DDX_Text(pDX, IDC_EDIT1, m_strName);
 DDX_Text(pDX, IDC_EDIT4, m_strenglish);
 //}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CMyDialog1, CDialog)
 //{{AFX_MSG_MAP(CMyDialog1)
 //}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMyDialog1 message handlers

void CMyDialog1::OnCancel()
{
 // TODO: Add extra cleanup here
 
 CDialog::OnCancel();
}


void CMyDialog1::OnOK()
{
 // TODO: Add extra validation here

 //   m_EdictID.GetWindowText(m_strID);
// this->GetDlgItemText(IDC_Edit1,m_strID);
    CDialog::OnOK();
}

原创粉丝点击