📄 processdlg.cpp
字号:
// ProcessDlg.cpp : implementation file
//
#include "stdafx.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CProcessDlg dialog
CProcessDlg::CProcessDlg(CWnd* pParent /*=NULL*/)
: CDialog(CProcessDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CProcessDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
m_nLower = 0;
m_nSupper = 100;
}
void CProcessDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CProcessDlg)
DDX_Control(pDX, IDC_STATIC_DB, m_stDB);
DDX_Control(pDX, IDC_PROGRESS, m_ctrProcess);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CProcessDlg, CDialog)
//{{AFX_MSG_MAP(CProcessDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CProcessDlg message handlers
BOOL CProcessDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_ctrProcess.SetRange(m_nLower, m_nSupper);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CProcessDlg::SetRange(short nLower, short nUpper)
{
m_nLower = nLower;
m_nSupper = nUpper;
}
void CProcessDlg::SetPosition(int nPos)
{
m_ctrProcess.SetPos(nPos);
}
void CProcessDlg::SetInfo(char *sInfo)
{
m_stDB.SetWindowText(sInfo);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -