dlg1.cpp

来自「LL(1)文法分析过程的可视化及教学应用研究」· C++ 代码 · 共 76 行

CPP
76
字号
// dlg1.cpp : implementation file
//

#include "stdafx.h"
#include "ll1_parsing.h"
#include "dlg1.h"
#include "dlg4.h"


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

Cdlg4 dlgt;

/////////////////////////////////////////////////////////////////////////////
// Cdlg1 dialog


Cdlg1::Cdlg1(CWnd* pParent /*=NULL*/)
	: CDialog(Cdlg1::IDD, pParent)
{
	//{{AFX_DATA_INIT(Cdlg1)
	first = _T("");
	follow = _T("");
	select = _T("");
	m_first = _T("");
	m_follow = _T("");
	m_select = _T("");
	//}}AFX_DATA_INIT
}


void Cdlg1::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Cdlg1)
	DDX_Text(pDX, IDC_EDIT1, m_first);
	DDX_Text(pDX, IDC_EDIT2, m_follow);
	DDX_Text(pDX, IDC_EDIT3, m_select);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Cdlg1, CDialog)
	//{{AFX_MSG_MAP(Cdlg1)
	ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
	ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
	ON_BN_CLICKED(IDC_BUTTON4, OnButton4)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Cdlg1 message handlers

void Cdlg1::OnButton2() 
{
	dlgt.m_course=first;
	dlgt.DoModal();
	
}

void Cdlg1::OnButton3() 
{
	dlgt.m_course=follow;
	dlgt.DoModal();
}

void Cdlg1::OnButton4() 
{
    dlgt.m_course=select;
	dlgt.DoModal();
}

⌨️ 快捷键说明

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