maindialog.cpp

来自「读取XML信息」· C++ 代码 · 共 50 行

CPP
50
字号
// MainDialog.cpp : implementation file
//

#include "stdafx.h"
#include "resource.h"
#include "MainDialog.h"
#include "XHtmlTreeTestDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMainDialog dialog

BEGIN_MESSAGE_MAP(CMainDialog, CDialog)
	//{{AFX_MSG_MAP(CMainDialog)
	ON_BN_CLICKED(IDC_START, OnStart)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

CMainDialog::CMainDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CMainDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(CMainDialog)
	m_nInput = 0;
	//}}AFX_DATA_INIT
}

void CMainDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMainDialog)
	DDX_Radio(pDX, IDC_IN_TEXT_ALL, m_nInput);
	//}}AFX_DATA_MAP
}

///////////////////////////////////////////////////////////////////////////////
// CMainDialog message handlers

void CMainDialog::OnStart() 
{
	UpdateData(TRUE);
	CWaitCursor wait;
	CXHtmlTreeTestDlg dlg(this, m_nInput);
	dlg.DoModal();
}

⌨️ 快捷键说明

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