Source code of Windows XP (NT5)
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.

70 lines
1.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation 1996-2001.
  5. //
  6. // File: areaprog.h
  7. //
  8. // Contents: definition of AreaProgress
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_AREAPROG_H__38CE6730_56FF_11D1_AB64_00C04FB6C6FA__INCLUDED_)
  12. #define AFX_AREAPROG_H__38CE6730_56FF_11D1_AB64_00C04FB6C6FA__INCLUDED_
  13. #if _MSC_VER >= 1000
  14. #pragma once
  15. #endif // _MSC_VER >= 1000
  16. #include "HelpDlg.h"
  17. #define NUM_AREAS 7
  18. /////////////////////////////////////////////////////////////////////////////
  19. // AreaProgress dialog
  20. class AreaProgress : public CHelpDialog
  21. {
  22. // Construction
  23. public:
  24. void SetArea(AREA_INFORMATION Area);
  25. void SetCurTicks(DWORD dwTicks);
  26. void SetMaxTicks(DWORD dwTicks);
  27. AreaProgress(CWnd* pParent = NULL); // standard constructor
  28. // Dialog Data
  29. //{{AFX_DATA(AreaProgress)
  30. enum { IDD = IDD_ANALYZE_PROGRESS };
  31. CProgressCtrl m_ctlProgress;
  32. //}}AFX_DATA
  33. // Overrides
  34. // ClassWizard generated virtual function overrides
  35. //{{AFX_VIRTUAL(AreaProgress)
  36. protected:
  37. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  38. //}}AFX_VIRTUAL
  39. // Implementation
  40. protected:
  41. int GetAreaIndex(AREA_INFORMATION Area);
  42. // Generated message map functions
  43. //{{AFX_MSG(AreaProgress)
  44. virtual BOOL OnInitDialog();
  45. //}}AFX_MSG
  46. DECLARE_MESSAGE_MAP()
  47. private:
  48. CBitmap m_bmpChecked;
  49. CBitmap m_bmpCurrent;
  50. int m_nLastArea;
  51. int m_isDC;
  52. CStatic m_stIcons[NUM_AREAS];
  53. CStatic m_stLabels[NUM_AREAS];
  54. CString m_strAreas[NUM_AREAS];
  55. };
  56. //{{AFX_INSERT_LOCATION}}
  57. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  58. #endif // !defined(AFX_AREAPROG_H__38CE6730_56FF_11D1_AB64_00C04FB6C6FA__INCLUDED_)