// // Microsoft Windows Media Technologies // Copyright (C) Microsoft Corporation, 1999 - 2001. All rights reserved. // // // ProgressHelper.h : Declaration of the CProgressHelper // #ifndef __PROGRESSHELPER_H_ #define __PROGRESSHELPER_H_ #include "progRC.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // // CProgressHelper // class ATL_NO_VTABLE CProgressHelper : public CComObjectRootEx, public CComCoClass, public IWMDMProgress, public IWMDMProgressHelper { HWND m_hwnd; UINT m_uMsg; PROGRESSNOTIFY m_progressnotify; BOOL m_fCancelled; public: CProgressHelper(); ~CProgressHelper(); DECLARE_REGISTRY_RESOURCEID(IDR_WMDMPROGRESSHELPER) DECLARE_PROTECT_FINAL_CONSTRUCT() BEGIN_COM_MAP(CProgressHelper) COM_INTERFACE_ENTRY(IWMDMProgressHelper) COM_INTERFACE_ENTRY(IWMDMProgress) END_COM_MAP() public: // IWMDMProgress STDMETHOD (Begin)( DWORD dwEstimatedTicks ); STDMETHOD (Progress)( DWORD dwTranspiredTicks ); STDMETHOD (End)(); // IWMDMProgressHelper STDMETHOD (SetNotification)( HWND hwnd, UINT uMsg ); STDMETHOD (Cancel)( VOID ); }; #endif //__PROGRESSHELPER_H_