Leaked source code of windows server 2003
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.

93 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name :
  4. progdlg.h
  5. Abstract:
  6. CProgressDialog dialog class declaration. This progress dialog
  7. is shown
  8. Author:
  9. Michael Cheuk (mcheuk)
  10. Project:
  11. Link Checker
  12. Revision History:
  13. --*/
  14. #ifndef _PROGDLG_H_
  15. #define _PROGDLG_H_
  16. #include "resource.h"
  17. #include "proglog.h"
  18. //---------------------------------------------------------------------------
  19. // CProgressDialog dialog
  20. //
  21. class CProgressDialog : public CDialog, CProgressLog
  22. {
  23. // Construction
  24. public:
  25. CProgressDialog();
  26. // Dialog Data
  27. //{{AFX_DATA(CProgressDialog)
  28. enum { IDD = IDD_PROGRESS };
  29. CButton m_button;
  30. CStatic m_staticProgressText;
  31. //}}AFX_DATA
  32. // Overrides
  33. // ClassWizard generated virtual function overrides
  34. //{{AFX_VIRTUAL(CProgressDialog)
  35. protected:
  36. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  37. //}}AFX_VIRTUAL
  38. // Public interfaces
  39. public:
  40. // Overwrite CProgressLog ABC virtual funtions
  41. // Write to log
  42. virtual void Log(
  43. const CString& strProgress
  44. )
  45. {
  46. m_staticProgressText.SetWindowText(strProgress);
  47. }
  48. // Worker thread notification
  49. virtual void WorkerThreadComplete();
  50. // Protected interfaces
  51. protected:
  52. // Set the button text
  53. void SetButtonText(
  54. const CString& strText
  55. )
  56. {
  57. m_button.SetWindowText(strText);
  58. }
  59. // Generated message map functions
  60. //{{AFX_MSG(CProgressDialog)
  61. virtual BOOL OnInitDialog();
  62. afx_msg void OnProgressButton();
  63. //}}AFX_MSG
  64. DECLARE_MESSAGE_MAP()
  65. }; // class CProgressDialog
  66. #endif // _PROGDLG_H_