home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
common
/
msdev98
/
bin
/
ide
/
progdlg.dll
/
TEMPLATE
/
148
next >
Wrap
Text File
|
1998-06-18
|
2KB
|
76 lines
// $$VAL:HeaderFile$$ : header file
// CG: This file was added by the Progress Dialog component
/////////////////////////////////////////////////////////////////////////////
// $$VAL:ClassName$$ dialog
#ifndef $$VAL:WrapHeader$$
#define $$VAL:WrapHeader$$
class $$VAL:ClassName$$ : public CDialog
{
// Construction / Destruction
public:
$$VAL:ClassName$$(UINT nCaptionID = 0); // standard constructor
~$$VAL:ClassName$$();
BOOL Create(CWnd *pParent=NULL);
$$IF:CancelButton$$
// Checking for Cancel button
BOOL CheckCancelButton();
$$ENDIF$$
// Progress Dialog manipulation
$$IF:ShowStatus$$
void SetStatus(LPCTSTR lpszMessage);
$$ENDIF$$
void SetRange(int nLower,int nUpper);
int SetStep(int nStep);
int SetPos(int nPos);
int OffsetPos(int nPos);
int StepIt();
// Dialog Data
//{{AFX_DATA($$VAL:ClassName$$)
enum { IDD = $$VAL:ResourceID$$ };
CProgressCtrl m_Progress;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL($$VAL:ClassName$$)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
UINT m_nCaptionID;
int m_nLower;
int m_nUpper;
int m_nStep;
$$IF:CancelButton$$
BOOL m_bCancel;
$$ENDIF$$
BOOL m_bParentDisabled;
void ReEnableParent();
virtual void OnCancel();
virtual void OnOK() {};
$$IF:ShowPercent$$
void UpdatePercent(int nCurrent);
$$ENDIF$$
void PumpMessages();
// Generated message map functions
//{{AFX_MSG($$VAL:ClassName$$)
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif // $$VAL:WrapHeader$$