Team Fortress 2 Source Code as on 22/4/2020
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.

74 lines
1.7 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // ProgDlg.h : header file
  9. // CG: This file was added by the Progress Dialog component
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CProgressDlg dialog
  12. #ifndef __PROGDLG_H__
  13. #define __PROGDLG_H__
  14. class CProgressDlg : public CDialog
  15. {
  16. // Construction / Destruction
  17. public:
  18. CProgressDlg(UINT nCaptionID = 0); // standard constructor
  19. ~CProgressDlg();
  20. BOOL Create(CWnd *pParent=NULL);
  21. // Checking for Cancel button
  22. BOOL CheckCancelButton();
  23. // Progress Dialog manipulation
  24. void SetRange(int nLower,int nUpper);
  25. int SetStep(int nStep);
  26. int SetPos(int nPos);
  27. int OffsetPos(int nPos);
  28. int StepIt();
  29. // Dialog Data
  30. //{{AFX_DATA(CProgressDlg)
  31. enum { IDD = CG_IDD_PROGRESS };
  32. CProgressCtrl m_Progress;
  33. //}}AFX_DATA
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CProgressDlg)
  37. public:
  38. virtual BOOL DestroyWindow();
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. protected:
  44. UINT m_nCaptionID;
  45. int m_nLower;
  46. int m_nUpper;
  47. int m_nStep;
  48. BOOL m_bCancel;
  49. BOOL m_bParentDisabled;
  50. void ReEnableParent();
  51. virtual void OnCancel();
  52. virtual void OnOK() {};
  53. void UpdatePercent(int nCurrent);
  54. void PumpMessages();
  55. // Generated message map functions
  56. //{{AFX_MSG(CProgressDlg)
  57. virtual BOOL OnInitDialog();
  58. //}}AFX_MSG
  59. DECLARE_MESSAGE_MAP()
  60. };
  61. #endif // __PROGDLG_H__