You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.0 KiB
55 lines
1.0 KiB
/*++
|
|
|
|
Copyright (C) 1996-1999 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
_PROGRESS.H
|
|
|
|
History:
|
|
|
|
--*/
|
|
|
|
#ifndef ESPUTIL__PROGRESS_H
|
|
#define ESPUTIL__PROGRESS_H
|
|
|
|
class CProgressDialog;
|
|
class CInputBlocker;
|
|
|
|
#pragma warning(disable:4251)
|
|
|
|
class LTAPIENTRY CProgressDisplay : public CProgressiveObject
|
|
{
|
|
public:
|
|
CProgressDisplay(CWnd *pParent = NULL);
|
|
|
|
void SetDelay(clock_t);
|
|
void DisplayDialog(BOOL);
|
|
|
|
void SetProgressIndicator(UINT uiPercentage);
|
|
|
|
void SetTitle(const CLString &);
|
|
void SetTitle(HINSTANCE, DWORD);
|
|
~CProgressDisplay();
|
|
|
|
virtual void SetCurrentTask(CLString const & strTask);
|
|
virtual void SetDescriptionString(CLString const & strDescription);
|
|
|
|
private:
|
|
CProgressDialog *m_pDialog;
|
|
UINT m_uiLastPercentage;
|
|
clock_t m_ctLastTime;
|
|
clock_t m_ctDisplayTime;
|
|
BOOL m_fDisplay;
|
|
BOOL m_fWaitCursor;
|
|
SmartPtr<CInputBlocker> m_spBlocker;
|
|
|
|
CLString m_strTitle;
|
|
CLString m_strDescription;
|
|
|
|
CWnd *m_pParent;
|
|
};
|
|
|
|
#pragma warning(default:4251)
|
|
|
|
#endif
|