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.

56 lines
1.3 KiB

  1. //
  2. // Microsoft Windows Media Technologies
  3. // Copyright (C) Microsoft Corporation, 1999 - 2001. All rights reserved.
  4. //
  5. //
  6. // ProgressHelper.h : Declaration of the CProgressHelper
  7. //
  8. #ifndef __PROGRESSHELPER_H_
  9. #define __PROGRESSHELPER_H_
  10. #include "progRC.h" // main symbols
  11. /////////////////////////////////////////////////////////////////////////////
  12. //
  13. // CProgressHelper
  14. //
  15. class ATL_NO_VTABLE CProgressHelper :
  16. public CComObjectRootEx<CComMultiThreadModel>,
  17. public CComCoClass<CProgressHelper, &CLSID_ProgressHelper>,
  18. public IWMDMProgress,
  19. public IWMDMProgressHelper
  20. {
  21. HWND m_hwnd;
  22. UINT m_uMsg;
  23. PROGRESSNOTIFY m_progressnotify;
  24. BOOL m_fCancelled;
  25. public:
  26. CProgressHelper();
  27. ~CProgressHelper();
  28. DECLARE_REGISTRY_RESOURCEID(IDR_WMDMPROGRESSHELPER)
  29. DECLARE_PROTECT_FINAL_CONSTRUCT()
  30. BEGIN_COM_MAP(CProgressHelper)
  31. COM_INTERFACE_ENTRY(IWMDMProgressHelper)
  32. COM_INTERFACE_ENTRY(IWMDMProgress)
  33. END_COM_MAP()
  34. public:
  35. // IWMDMProgress
  36. STDMETHOD (Begin)( DWORD dwEstimatedTicks );
  37. STDMETHOD (Progress)( DWORD dwTranspiredTicks );
  38. STDMETHOD (End)();
  39. // IWMDMProgressHelper
  40. STDMETHOD (SetNotification)( HWND hwnd, UINT uMsg );
  41. STDMETHOD (Cancel)( VOID );
  42. };
  43. #endif //__PROGRESSHELPER_H_