Click here to Skip to main content
15,886,110 members
Articles / Desktop Programming / MFC

How long is this process going to take?

Rate me:
Please Sign up or sign in to vote.
4.41/5 (13 votes)
18 Jul 2006CPOL7 min read 54.3K   907   50  
A class for creating a progress control with text and estimated completion time.
#if !defined(AFX_PROGRESSTESTDLG_H__B8C97E79_1B99_4145_8A4E_756509AB9F17__INCLUDED_)
#define AFX_PROGRESSTESTDLG_H__B8C97E79_1B99_4145_8A4E_756509AB9F17__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "EstProgressCtrl.h"

/////////////////////////////////////////////////////////////////////////////
// CProgressTestDlg dialog

class CProgressTestDlg : public CDialog
{
// Construction
public:
	CProgressTestDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CProgressTestDlg)
	enum { IDD = IDD_PROGRESSTEST_DIALOG };
	CRichEditCtrl	m_richedit;
	CEstProgressCtrl m_ctlProgress;
	CEdit	m_ebTo;
	CEdit	m_ebFrom;
	CButton	m_btnOK;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CProgressTestDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CProgressTestDlg)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnChangePaths();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PROGRESSTESTDLG_H__B8C97E79_1B99_4145_8A4E_756509AB9F17__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Pinnacle Business Systems
United States United States

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

HTTP 404 - File not found
Internet Information Services

Comments and Discussions