downloaddlg.cpp

来自「Vc++6.0开发的五笔编码速查软件。包含完整源码。」· C++ 代码 · 共 66 行

CPP
66
字号
// DownloadDlg.cpp : implementation file
//

#include "stdafx.h"
#include "WMVC.h"
#include "DownloadDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDownloadDlg dialog


CDownloadDlg::CDownloadDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CDownloadDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDownloadDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CDownloadDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDownloadDlg)
	DDX_Control(pDX, IDC_UPGRADEATX, m_atxUpgrade);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CDownloadDlg message handlers

void CDownloadDlg::OnOK() 
{
	
	CDialog::OnOK();
}

void CDownloadDlg::OnCancel() 
{

	CDialog::OnCancel();
}

void CDownloadDlg::OnStart() 
{
	GetDlgItem(IDC_START)->EnableWindow(FALSE);
	m_atxUpgrade.Download();	
	AfxMessageBox("下载完毕,稍候开始安装。"
		"安装时要退出当前程序,按“确定”退出当前程序...");
	AfxGetMainWnd()->PostMessage(WM_QUIT, 0, 0);
	m_atxUpgrade.DoSetup();
}

⌨️ 快捷键说明

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