76 lines
1.8 KiB
C++
76 lines
1.8 KiB
C++
// Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
|
|
// ProgDlg.h : header file
|
|
// CG: This file was added by the Progress Dialog component
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CProgressDlg dialog
|
|
|
|
#ifndef __PROGDLG_H__
|
|
#define __PROGDLG_H__
|
|
|
|
class CNavigatorCtrl;
|
|
|
|
|
|
class CProgressDlg : public CDialog
|
|
{
|
|
// Construction / Destruction
|
|
public:
|
|
CProgressDlg(UINT nCaptionID = 0); // standard constructor
|
|
~CProgressDlg();
|
|
|
|
BOOL Create(CWnd *pParent=NULL);
|
|
void SetMessage(CString &csMessage)
|
|
{m_csMessage = csMessage;}
|
|
void SetLabel(CString &csLabel)
|
|
{m_csLabel = csLabel;}
|
|
void PumpMessages();
|
|
|
|
// Checking for Cancel button
|
|
BOOL CheckCancelButton();
|
|
// Progress Dialog manipulation
|
|
void SetStatus(LPCTSTR lpszMessage);
|
|
|
|
void SetActiveXParent(CNavigatorCtrl *pParent)
|
|
{ m_pActiveXParent = pParent;}
|
|
|
|
void UpdateWindowStrings();
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CProgressDlg)
|
|
enum { IDD = CG_IDD_PROGRESS };
|
|
CStatic m_cstaticMessage;
|
|
//}}AFX_DATA
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CProgressDlg)
|
|
public:
|
|
virtual BOOL DestroyWindow();
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
CString m_csMessage;
|
|
CString m_csLabel;
|
|
|
|
BOOL m_bCancel;
|
|
BOOL m_bParentDisabled;
|
|
|
|
void ReEnableParent();
|
|
|
|
CNavigatorCtrl *m_pActiveXParent;
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CProgressDlg)
|
|
virtual BOOL OnInitDialog();
|
|
virtual void OnCancel();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
friend class CNavigatorCtrl;
|
|
};
|
|
|
|
#endif // __PROGDLG_H__
|