📄 dlgprogress.cpp
字号:
/*
VaporCD CD-ROM Volume Emulation for Windows NT/2000
Copyright (C) 2000 Brad Johnson
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
http://vaporcd.sourceforge.net/
Brad Johnson
3305 2nd PL #222
Lubbock, TX 79415
*/
// DlgProgress.cpp : implementation file
//
#include "stdafx.h"
#include "VaporCD.h"
#include "DlgProgress.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// DlgProgress dialog
DlgProgress::DlgProgress(CWnd* pParent /*=NULL*/)
: CDialog(DlgProgress::IDD, pParent)
{
//{{AFX_DATA_INIT(DlgProgress)
m_sMessage = _T("");
//}}AFX_DATA_INIT
// Create(DlgProgress::IDD);
m_bCancel = FALSE;
}
void DlgProgress::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(DlgProgress)
DDX_Control(pDX, IDC_PROGRESS1, m_cProgress);
DDX_Text(pDX, IDC_MESSAGE, m_sMessage);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(DlgProgress, CDialog)
//{{AFX_MSG_MAP(DlgProgress)
ON_BN_CLICKED(IDC_UPDATE, OnUpdate)
ON_WM_TIMER()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// DlgProgress message handlers
void DlgProgress::OnUpdate()
{
// TODO: Add your control notification handler code here
UpdateData(FALSE);
UpdateWindow();
}
void DlgProgress::OnCancel()
{
// TODO: Add extra cleanup here
m_bCancel = TRUE;
CDialog::OnCancel();
}
void DlgProgress::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
if (nIDEvent == 99)
{
UpdateData(FALSE);
UpdateWindow();
SetTimer(99,1000,NULL);
}else
CDialog::OnTimer(nIDEvent);
}
BOOL DlgProgress::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
SetTimer(99,1000,NULL);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -