home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow / Common / seekutil.h < prev    next >
Encoding:
Text File  |  2001-10-08  |  893 b   |  26 lines

  1. //------------------------------------------------------------------------------
  2. // File: SeekUtil.h
  3. //
  4. // Desc: DirectShow sample code - prototypes for seeking utility functions
  5. //
  6. // Copyright (c) 2000-2001 Microsoft Corporation.  All rights reserved.
  7. //------------------------------------------------------------------------------
  8.  
  9. //
  10. // Constants
  11. //
  12. const int TICKLEN=100, TIMERID=55;
  13.  
  14. //
  15. // Function prototypes
  16. //
  17. HRESULT ConfigureSeekbar(IMediaSeeking *pMS, CSliderCtrl Seekbar, CStatic& strPosition);
  18.  
  19. void StartSeekTimer();
  20. void StopSeekTimer();
  21. void UpdatePosition(IMediaSeeking *pMS, REFERENCE_TIME rtNow, CStatic& strPosition);
  22. void ReadMediaPosition(IMediaSeeking *pMS, CSliderCtrl& Seekbar, CStatic& strPosition);
  23.  
  24. void HandleTrackbar(IMediaControl *pMC, IMediaSeeking *pMS, 
  25.                     CSliderCtrl& Seekbar, CStatic& strPosition, WPARAM wReq);
  26.