⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 displaydlg.cpp

📁 编译原理习题vc代码
💻 CPP
字号:
// DisplayDlg.cpp : implementation file
//

#include "stdafx.h"
#include "FileDlg.h"
#include "DisplayDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// DisplayDlg dialog


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

DisplayDlg::DisplayDlg(CWnd* pParent,CString date)
           : CDialog(DisplayDlg::IDD, pParent)
{
     data=date;
}
void DisplayDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(DisplayDlg)
	DDX_Text(pDX, IDC_EDIT1, m_display);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(DisplayDlg, CDialog)
	//{{AFX_MSG_MAP(DisplayDlg)
	ON_BN_CLICKED(IDC_DISPLAY, OnDisplay)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// DisplayDlg message handlers

BOOL DisplayDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
//    SetDlgItemText(IDC_EDIT1,data);	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

int DisplayDlg::DoModal() 
{
	// TODO: Add your specialized code here and/or call the base class
 
	return CDialog::DoModal();
}

void DisplayDlg::OnDisplay() 
{
	// TODO: Add your control notification handler code here
	SetDlgItemText(IDC_EDIT1,data);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -