📄 transportinfodlg.cpp
字号:
// TransportInfoDlg.cpp : implementation file
//
#include "stdafx.h"
#include "lancommunion.h"
#include "TransportInfoDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTransportInfoDlg dialog
CTransportInfoDlg::CTransportInfoDlg(CWnd* pParent /*=NULL*/)
: CDialog(CTransportInfoDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CTransportInfoDlg)
//}}AFX_DATA_INIT
m_bEnd=false;
}
void CTransportInfoDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTransportInfoDlg)
DDX_Control(pDX, IDC_EDIT_FILETITLE, m_title);
DDX_Control(pDX, IDC_TRANSPORT_SPEED, m_speed);
DDX_Control(pDX, IDC_PROGRESS, m_progress);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTransportInfoDlg, CDialog)
//{{AFX_MSG_MAP(CTransportInfoDlg)
ON_WM_CLOSE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTransportInfoDlg message handlers
BOOL CTransportInfoDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
//设置进度条颜色。
COLORREF crf=RGB(0,255,0);
m_progress.SendMessage(PBM_SETBARCOLOR,0,crf );
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CTransportInfoDlg::OnClose()
{
// TODO: Add your message handler code here and/or call default
m_bEnd=true;
}
void CTransportInfoDlg::OnCancel()
{
// TODO: Add extra cleanup here
m_bEnd=true;
}
void CTransportInfoDlg::PostNcDestroy()
{
// TODO: Add your specialized code here and/or call the base class
delete this;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -