home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / ba / usevideo / videomfc / bpcvid.h < prev    next >
C/C++ Source or Header  |  1997-08-29  |  4KB  |  124 lines

  1. //
  2. // bpcvid.h: Defines the CBPCVid class 
  3. //
  4. // Copyright (C) 1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Broadcast Architecture Programmer's Reference.
  9. // For detailed information regarding Broadcast
  10. // Architecture, see the reference.
  11. //
  12. #if !defined(AFX_BPCVID_H__4E088A10_0E75_11D1_A073_00A0C9054174__INCLUDED_)
  13. #define AFX_BPCVID_H__4E088A10_0E75_11D1_A073_00A0C9054174__INCLUDED_
  14.  
  15. #if _MSC_VER >= 1000
  16. #pragma once
  17. #endif // _MSC_VER >= 1000
  18. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  19.  
  20. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  21. //  Microsoft Visual C++, your modifications will be overwritten.
  22.  
  23.  
  24. // Dispatch interfaces referenced by this interface
  25. class CBPCDeviceBase;
  26. class CBPCDevices;
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CBPCVid wrapper class
  30.  
  31. class CBPCVid : public CWnd
  32. {
  33. protected:
  34.     DECLARE_DYNCREATE(CBPCVid)
  35. public:
  36.     CLSID const& GetClsid()
  37.     {
  38.         static CLSID const clsid
  39.             = { 0x31263ec0, 0x2957, 0x11cf, { 0xa1, 0xe5, 0x0, 0xaa, 0x9e, 0xc7, 0x97, 0x0 } };
  40.         return clsid;
  41.     }
  42.     virtual BOOL Create(LPCTSTR lpszClassName,
  43.         LPCTSTR lpszWindowName, DWORD dwStyle,
  44.         const RECT& rect,
  45.         CWnd* pParentWnd, UINT nID,
  46.         CCreateContext* pContext = NULL)
  47.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  48.  
  49.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  50.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  51.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  52.         BSTR bstrLicKey = NULL)
  53.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  54.         pPersist, bStorage, bstrLicKey); }
  55.  
  56. // Attributes
  57. public:
  58.  
  59. // Operations
  60. public:
  61.     BOOL GetPower();
  62.     void SetPower(BOOL bNewValue);
  63.     double GetStartTime();
  64.     void SetStartTime(double newValue);
  65.     double GetStopTime();
  66.     void SetStopTime(double newValue);
  67.     BOOL GetVideoOn();
  68.     void SetVideoOn(BOOL bNewValue);
  69.     BOOL GetClosedCaption();
  70.     void SetClosedCaption(BOOL bNewValue);
  71.     BOOL GetDebug();
  72.     void SetDebug(BOOL bNewValue);
  73.     long GetDeviceCount();
  74.     CBPCDeviceBase GetInput();
  75.     void SetInput(LPDISPATCH newValue);
  76.     CBPCDeviceBase GetOutput();
  77.     void SetOutput(LPDISPATCH newValue);
  78.     long GetColorKey();
  79.     void SetColorKey(long nNewValue);
  80.     CString GetFileName();
  81.     void SetFileName(LPCTSTR lpszNewValue);
  82.     long GetPriority();
  83.     void SetPriority(long nNewValue);
  84.     long GetVolume();
  85.     void SetVolume(long nNewValue);
  86.     long GetBalance();
  87.     void SetBalance(long nNewValue);
  88.     long GetImageSourceHeight();
  89.     long GetImageSourceWidth();
  90.     short GetMovieWindowSetting();
  91.     void SetMovieWindowSetting(short nNewValue);
  92.     long GetCurrentState();
  93.     double GetCurrentPosition();
  94.     void SetCurrentPosition(double newValue);
  95.     double GetDuration();
  96.     double GetPrerollTime();
  97.     void SetPrerollTime(double newValue);
  98.     double GetRate();
  99.     void SetRate(double newValue);
  100.     long GetLocaleID();
  101.     void SetLocaleID(long nNewValue);
  102.     LPDISPATCH GetFont();
  103.     void SetFont(LPDISPATCH newValue);
  104.     short GetDisplayMode();
  105.     void SetDisplayMode(short nNewValue);
  106.     long GetHWnd();
  107.     CBPCDevices GetDevices();
  108.     void Run();
  109.     void Pause();
  110.     void Stop();
  111.     void Close();
  112.     void Open(LPCTSTR FileName);
  113.     void Login(LPCTSTR UserName, LPCTSTR Password);
  114.     void Tune(long lTuningSpace, long Channel, long VideoSubchannel, long AudioSubchannel);
  115.     long TSDeviceCount(long lTuningSpace);
  116.     void Refresh();
  117.     void AboutBox();
  118. };
  119.  
  120. //{{AFX_INSERT_LOCATION}}
  121. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  122.  
  123. #endif // !defined(AFX_BPCVID_H__4E088A10_0E75_11D1_A073_00A0C9054174__INCLUDED_)
  124.