00001
00009
#ifndef __PROGDLG_H__
00010
#define __PROGDLG_H__
00011
00019 class CExportingDlg :
public CDialog
00020 {
00021
00022
public:
00023
CExportingDlg(UINT nCaptionID = 0);
00024 ~
CExportingDlg();
00025
00026 BOOL Create(CWnd *pParent=NULL);
00027
00028
00029 BOOL CheckCancelButton();
00030
00031
void SetStatus(LPCTSTR lpszMessage);
00032
void SetRange(
int nLower,
int nUpper);
00033
int SetStep(
int nStep);
00034
int SetPos(
int nPos);
00035
int OffsetPos(
int nPos);
00036
int StepIt();
00037
00038
00039
00040
enum { IDD = CG_IDD_PROGRESS };
00041 CProgressCtrl m_Progress;
00042
00043
00044
00045
00046
00047
public:
00048
virtual BOOL DestroyWindow();
00049
virtual BOOL PreTranslateMessage(MSG* pMsg);
00050
protected:
00051
virtual void DoDataExchange(CDataExchange* pDX);
00052
00053
00054
00055
protected:
00056 UINT m_nCaptionID;
00057
int m_nLower;
00058
int m_nUpper;
00059
int m_nStep;
00060
00061 BOOL m_bCancel;
00062 BOOL m_bParentDisabled;
00063
00064
void ReEnableParent();
00065
00066
virtual void OnCancel();
00067
virtual void OnOK() {};
00068
void UpdatePercent(
int nCurrent);
00069
void PumpMessages();
00070
00071
00072
00073
virtual BOOL OnInitDialog();
00074
00075 DECLARE_MESSAGE_MAP()
00076 };
00077
00078
#endif // __PROGDLG_H__