www.pudn.com > Usb_Install_2KXP.rar > Dlg_ProcessIng.cpp


// Dlg_ProcessIng.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "Usb_Install_2KXP.h" 
#include "Dlg_ProcessIng.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CDlg_ProcessIng dialog 
 
 
CDlg_ProcessIng::CDlg_ProcessIng(CWnd* pParent /*=NULL*/) 
	: CDialog(CDlg_ProcessIng::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CDlg_ProcessIng) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
} 
 
 
void CDlg_ProcessIng::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CDlg_ProcessIng) 
	DDX_Control(pDX, IDC_PROGRESS_STEP, m_ctrl_Progress); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CDlg_ProcessIng, CDialog) 
	//{{AFX_MSG_MAP(CDlg_ProcessIng) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CDlg_ProcessIng message handlers 
 
BOOL CDlg_ProcessIng::OnInitDialog()  
{ 
	CDialog::OnInitDialog(); 
	 
	// TODO: Add extra initialization here 
	 
	if (theApp.bInstall) 
	{ 
		this->SetWindowText(_T("Installing...")); 
	} 
	else 
	{ 
		this->SetWindowText(_T("UnInstalling...")); 
	} 
 
	m_ctrl_Progress.SetRange(0,100); 
	m_ctrl_Progress.SetPos(0); 
	 
	return TRUE;  // return TRUE unless you set the focus to a control 
	              // EXCEPTION: OCX Property Pages should return FALSE 
}