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.

71 lines
1.7 KiB

  1. #ifndef _PROGRESSDLG_H
  2. #define _PROGRESSDLG_H
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ProgressDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CProgressDlg dialog
  10. //
  11. // User defined windows messages
  12. //
  13. #define WM_STEP_PROGRESS WM_USER + 500
  14. #define WM_CANCEL_ACQUIRE WM_USER + 501
  15. #define WM_UPDATE_PROGRESS_TEXT WM_USER + 502
  16. class CProgressDlg : public CDialog
  17. {
  18. // Construction
  19. public:
  20. CProgressDlg(CWnd* pParent = NULL); // standard constructor
  21. void SetAcquireData(DATA_ACQUIRE_INFO* pDataAcquireInfo);
  22. DATA_ACQUIRE_INFO* m_pDataAcquireInfo;
  23. // Dialog Data
  24. //{{AFX_DATA(CProgressDlg)
  25. enum { IDD = IDD_PROGRESS_DIALOG };
  26. CButton m_CancelButton;
  27. CProgressCtrl m_ProgressCtrl;
  28. CString m_ProgressText;
  29. //}}AFX_DATA
  30. // Overrides
  31. // ClassWizard generated virtual function overrides
  32. //{{AFX_VIRTUAL(CProgressDlg)
  33. protected:
  34. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  35. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  36. //}}AFX_VIRTUAL
  37. // Implementation
  38. protected:
  39. CWinThread* m_pDataAcquireThread;
  40. protected:
  41. // Generated message map functions
  42. //{{AFX_MSG(CProgressDlg)
  43. afx_msg void OnCancel();
  44. virtual BOOL OnInitDialog();
  45. //}}AFX_MSG
  46. DECLARE_MESSAGE_MAP()
  47. };
  48. //
  49. // Thread information
  50. //
  51. UINT WINAPIV DataAcquireThreadProc(LPVOID pParam);
  52. BOOL ProgressFunction(LPTSTR lpszText, LONG lPercentComplete);
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  55. #endif