⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 transportinfodlg.cpp

📁 局域网实现聊天,并传输文件,功能较齐全,可添加用户!欢迎大家下载!
💻 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 + -