mirror of https://github.com/tongzx/nt5src
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.
67 lines
2.2 KiB
67 lines
2.2 KiB
#ifndef _INC_DSKQUOTA_PROGRESS_H
|
|
#define _INC_DSKQUOTA_PROGRESS_H
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
/* File: progress.h
|
|
|
|
Description: Declarations for class ProgressDialog. Any derivative
|
|
classes should also be declared here.
|
|
|
|
|
|
Revision History:
|
|
|
|
Date Description Programmer
|
|
-------- --------------------------------------------------- ----------
|
|
05/28/97 Initial creation. BrianAu
|
|
*/
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
class ProgressDialog
|
|
{
|
|
private:
|
|
UINT m_idDialogTemplate;
|
|
UINT m_idProgressBar;
|
|
UINT m_idTxtDescription;
|
|
UINT m_idTxtFileName;
|
|
HWND m_hwndProgressBar;
|
|
BOOL m_bUserCancelled;
|
|
|
|
static INT_PTR CALLBACK DlgProc(HWND, UINT, WPARAM, LPARAM);
|
|
INT_PTR SendToProgressBar(UINT, WPARAM, LPARAM);
|
|
|
|
protected:
|
|
|
|
virtual INT_PTR HandleMessage(HWND, UINT, WPARAM, LPARAM);
|
|
virtual INT_PTR OnInitDialog(HWND, WPARAM, LPARAM);
|
|
virtual INT_PTR OnDestroy(HWND);
|
|
virtual INT_PTR OnCancel(HWND, WPARAM, LPARAM);
|
|
|
|
public:
|
|
HWND m_hWnd;
|
|
|
|
ProgressDialog(UINT idDialogTemplate,
|
|
UINT idProgressBar,
|
|
UINT idTxtDescription,
|
|
UINT idTxtFileName);
|
|
|
|
~ProgressDialog(VOID);
|
|
|
|
UINT DialogID(VOID)
|
|
{ return m_idDialogTemplate; }
|
|
|
|
BOOL UserCancelled(VOID)
|
|
{ return m_bUserCancelled; }
|
|
|
|
virtual BOOL Create(HINSTANCE hInstance, HWND hwndParent);
|
|
virtual VOID Destroy(VOID);
|
|
virtual BOOL ProgressBarInit(UINT iMin, UINT iMax, UINT iStep);
|
|
virtual UINT ProgressBarReset(VOID);
|
|
virtual UINT ProgressBarAdvance(UINT iDelta = (UINT)-1);
|
|
virtual UINT ProgressBarSetPosition(UINT iPosition);
|
|
virtual VOID FlushMessages(VOID);
|
|
virtual VOID SetTitle(LPCTSTR pszTitle);
|
|
virtual VOID SetDescription(LPCTSTR pszDescription);
|
|
virtual VOID SetFileName(LPCTSTR pszFileName);
|
|
virtual VOID Show(VOID);
|
|
virtual VOID Hide(VOID);
|
|
};
|
|
|
|
#endif // _INC_DSKQUOTA_PROGRESS_H
|