BOOL IsCancel(void)
{ return m_IsCancel;}
virtual DWORD ProgressProc()=0;//线程过程纯虚函数
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CProgressDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX);
// DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CProgressDialog)
virtual BOOL OnInitDialog();
virtual void OnCancel();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
class CMyProgressDialog:public CProgressDialog {
public:
CMyProgressDialog(LPCSTR caption):CProgressDialog(caption) {}
virtual DWORD ProgressProc(); //继承过程
};
// ProgressDialog.cpp
#include "stdafx.h"
#include "ProgressTest.h"
#include "ProgressDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;

