📄 downloaddlg.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -