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.

67 lines
1.3 KiB

  1. //
  2. // Microsoft Windows Media Technologies
  3. // Copyright (C) Microsoft Corporation, 1999 - 2001. All rights reserved.
  4. //
  5. // This workspace contains two projects -
  6. // 1. ProgHelp which implements the Progress Interface
  7. // 2. The Sample application WmdmApp.
  8. //
  9. // ProgHelp.dll needs to be registered first for the SampleApp to run.
  10. //
  11. // progress.h
  12. //
  13. #ifndef _PROGRESS_H_
  14. #define _PROGRESS_H_
  15. // dependencies
  16. ///////////////////////////////////////////////////////////////////////////////
  17. // rio class
  18. class CProgress
  19. {
  20. // directory block
  21. HWND m_hwndProgress;
  22. INT m_nCurrentNum;
  23. INT m_nTotalNum;
  24. DWORD m_dwCurrentBytes;
  25. DWORD m_dwTotalBytes;
  26. BOOL m_fCancelled;
  27. public:
  28. // constructors/destructors
  29. CProgress();
  30. ~CProgress();
  31. // operations
  32. BOOL Create( HWND hwndParent );
  33. VOID Destroy( void );
  34. BOOL Show( BOOL fShow );
  35. BOOL SetOperation( LPSTR lpsz );
  36. BOOL SetDetails( LPSTR lpsz );
  37. BOOL SetRange( INT nMin, INT nMax );
  38. BOOL SetPos( INT nPos );
  39. BOOL IncPos( INT nIncrement );
  40. BOOL SetCount( INT nCurrentNum, INT nTotalNum );
  41. BOOL IncCount( INT nIncrement = 1 );
  42. BOOL SetBytes( DWORD dwCurrentNum, DWORD dwTotalNum );
  43. BOOL IncBytes( DWORD dwIncrement );
  44. BOOL Cancel( void );
  45. BOOL IsCancelled( void );
  46. };
  47. #endif // _PROGRESS_H_