activemovie3.h
资源名称:Player.rar [点击查看]
上传用户:ziniusheji
上传日期:2022-08-10
资源大小:11534k
文件大小:14k
源码类别:
多媒体编程
开发平台:
C++ Builder
- #pragma once
- // 计算机生成了由 Microsoft Visual C++ 创建的 IDispatch 包装类
- // 注意: 不要修改此文件的内容。如果此类由
- // Microsoft Visual C++ 重新生成,您的修改将被覆盖。
- /////////////////////////////////////////////////////////////////////////////
- // CActiveMovie3 包装类
- class CActiveMovie3 : public CWnd
- {
- protected:
- DECLARE_DYNCREATE(CActiveMovie3)
- public:
- CLSID const& GetClsid()
- {
- static CLSID const clsid
- = { 0x5589FA1, 0xC356, 0x11CE, { 0xBF, 0x1, 0x0, 0xAA, 0x0, 0x55, 0x59, 0x5A } };
- return clsid;
- }
- virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,
- const RECT& rect, CWnd* pParentWnd, UINT nID,
- CCreateContext* pContext = NULL)
- {
- return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID);
- }
- BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd,
- UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE,
- BSTR bstrLicKey = NULL)
- {
- return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
- pPersist, bStorage, bstrLicKey);
- }
- // 属性
- public:
- enum
- {
- amvUninitialized = 0,
- amvLoading = 1,
- amvInteractive = 3,
- amvComplete = 4
- }ReadyStateConstants;
- enum
- {
- amvNotLoaded = -1,
- amvStopped = 0,
- amvPaused = 1,
- amvRunning = 2
- }StateConstants;
- enum
- {
- amvTime = 0,
- amvFrames = 1
- }DisplayModeConstants;
- enum
- {
- amvOriginalSize = 0,
- amvDoubleOriginalSize = 1,
- amvOneSixteenthScreen = 2,
- amvOneFourthScreen = 3,
- amvOneHalfScreen = 4
- }WindowSizeConstants;
- enum
- {
- amvFlat = 0,
- amv3D = 1
- }AppearanceConstants;
- enum
- {
- amvNone = 0,
- amvFixedSingle = 1
- }BorderStyleConstants;
- // 操作
- public:
- // IActiveMovie3
- // Functions
- //
- void AboutBox()
- {
- InvokeHelper(DISPID_ABOUTBOX, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void Run()
- {
- InvokeHelper(0x60020001, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void Pause()
- {
- InvokeHelper(0x60020002, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void Stop()
- {
- InvokeHelper(0x60020003, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void SetFileName(LPCTSTR lpszNewValue)
- {
- static BYTE parms[] =VTS_BSTR;
- InvokeHelper(0xb, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,lpszNewValue);
- }
- long get_ImageSourceWidth()
- {
- long result;
- InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- long get_ImageSourceHeight()
- {
- long result;
- InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- CString get_Author()
- {
- CString result;
- InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
- return result;
- }
- CString get_Title()
- {
- CString result;
- InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
- return result;
- }
- CString get_Copyright()
- {
- CString result;
- InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
- return result;
- }
- CString get_Description()
- {
- CString result;
- InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
- return result;
- }
- CString get_Rating()
- {
- CString result;
- InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
- return result;
- }
- CString get_FileName()
- {
- CString result;
- InvokeHelper(0xb, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
- return result;
- }
- void put_FileName(LPCTSTR newValue)
- {
- static BYTE parms[] = VTS_BSTR ;
- InvokeHelper(0xb, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- double get_Duration()
- {
- double result;
- InvokeHelper(0xc, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
- return result;
- }
- double get_CurrentPosition()
- {
- double result;
- InvokeHelper(0xd, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
- return result;
- }
- void put_CurrentPosition(double newValue)
- {
- static BYTE parms[] = VTS_R8 ;
- InvokeHelper(0xd, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- long get_PlayCount()
- {
- long result;
- InvokeHelper(0xe, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void put_PlayCount(long newValue)
- {
- static BYTE parms[] = VTS_I4 ;
- InvokeHelper(0xe, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- double get_SelectionStart()
- {
- double result;
- InvokeHelper(0xf, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
- return result;
- }
- void put_SelectionStart(double newValue)
- {
- static BYTE parms[] = VTS_R8 ;
- InvokeHelper(0xf, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- double get_SelectionEnd()
- {
- double result;
- InvokeHelper(0x10, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
- return result;
- }
- void put_SelectionEnd(double newValue)
- {
- static BYTE parms[] = VTS_R8 ;
- InvokeHelper(0x10, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- long get_CurrentState()
- {
- long result;
- InvokeHelper(0x11, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- double get_Rate()
- {
- double result;
- InvokeHelper(0x12, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
- return result;
- }
- void put_Rate(double newValue)
- {
- static BYTE parms[] = VTS_R8 ;
- InvokeHelper(0x12, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- long get_Volume()
- {
- long result;
- InvokeHelper(0x13, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void put_Volume(long newValue)
- {
- static BYTE parms[] = VTS_I4 ;
- InvokeHelper(0x13, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- long get_Balance()
- {
- long result;
- InvokeHelper(0x14, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void put_Balance(long newValue)
- {
- static BYTE parms[] = VTS_I4 ;
- InvokeHelper(0x14, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_EnableContextMenu()
- {
- BOOL result;
- InvokeHelper(0x15, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_EnableContextMenu(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(0x15, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_ShowDisplay()
- {
- BOOL result;
- InvokeHelper(0x16, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_ShowDisplay(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(0x16, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_ShowControls()
- {
- BOOL result;
- InvokeHelper(0x17, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_ShowControls(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(0x17, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_ShowPositionControls()
- {
- BOOL result;
- InvokeHelper(0x18, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_ShowPositionControls(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(0x18, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_ShowSelectionControls()
- {
- BOOL result;
- InvokeHelper(0x19, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_ShowSelectionControls(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(0x19, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_ShowTracker()
- {
- BOOL result;
- InvokeHelper(0x1a, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_ShowTracker(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(0x1a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_EnablePositionControls()
- {
- BOOL result;
- InvokeHelper(0x1b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_EnablePositionControls(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(0x1b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_EnableSelectionControls()
- {
- BOOL result;
- InvokeHelper(0x1c, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_EnableSelectionControls(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(0x1c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_EnableTracker()
- {
- BOOL result;
- InvokeHelper(0x1d, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_EnableTracker(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(0x1d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_AllowHideDisplay()
- {
- BOOL result;
- InvokeHelper(0x1e, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_AllowHideDisplay(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(0x1e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_AllowHideControls()
- {
- BOOL result;
- InvokeHelper(0x1f, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_AllowHideControls(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(0x1f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- long get_DisplayMode()
- {
- long result;
- InvokeHelper(0x20, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void put_DisplayMode(long newValue)
- {
- static BYTE parms[] = VTS_I4 ;
- InvokeHelper(0x20, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_AllowChangeDisplayMode()
- {
- BOOL result;
- InvokeHelper(0x21, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_AllowChangeDisplayMode(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(0x21, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- LPUNKNOWN get_FilterGraph()
- {
- LPUNKNOWN result;
- InvokeHelper(0x22, DISPATCH_PROPERTYGET, VT_UNKNOWN, (void*)&result, NULL);
- return result;
- }
- void put_FilterGraph(LPUNKNOWN newValue)
- {
- static BYTE parms[] = VTS_UNKNOWN ;
- InvokeHelper(0x22, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- LPDISPATCH get_FilterGraphDispatch()
- {
- LPDISPATCH result;
- InvokeHelper(0x23, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
- return result;
- }
- unsigned long get_DisplayForeColor()
- {
- unsigned long result;
- InvokeHelper(0x24, DISPATCH_PROPERTYGET, VT_UI4, (void*)&result, NULL);
- return result;
- }
- void put_DisplayForeColor(unsigned long newValue)
- {
- static BYTE parms[] = VTS_UI4 ;
- InvokeHelper(0x24, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- unsigned long get_DisplayBackColor()
- {
- unsigned long result;
- InvokeHelper(0x25, DISPATCH_PROPERTYGET, VT_UI4, (void*)&result, NULL);
- return result;
- }
- void put_DisplayBackColor(unsigned long newValue)
- {
- static BYTE parms[] = VTS_UI4 ;
- InvokeHelper(0x25, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- long get_MovieWindowSize()
- {
- long result;
- InvokeHelper(0x26, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void put_MovieWindowSize(long newValue)
- {
- static BYTE parms[] = VTS_I4 ;
- InvokeHelper(0x26, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_FullScreenMode()
- {
- BOOL result;
- InvokeHelper(0x27, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_FullScreenMode(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(0x27, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_AutoStart()
- {
- BOOL result;
- InvokeHelper(0x28, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_AutoStart(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(0x28, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_AutoRewind()
- {
- BOOL result;
- InvokeHelper(0x29, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_AutoRewind(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(0x29, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- long get_hWnd()
- {
- long result;
- InvokeHelper(DISPID_HWND, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- long get_Appearance()
- {
- long result;
- InvokeHelper(DISPID_APPEARANCE, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void put_Appearance(long newValue)
- {
- static BYTE parms[] = VTS_I4 ;
- InvokeHelper(DISPID_APPEARANCE, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- long get_BorderStyle()
- {
- long result;
- InvokeHelper(0x2a, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void put_BorderStyle(long newValue)
- {
- static BYTE parms[] = VTS_I4 ;
- InvokeHelper(0x2a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- BOOL get_Enabled()
- {
- BOOL result;
- InvokeHelper(DISPID_ENABLED, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void put_Enabled(BOOL newValue)
- {
- static BYTE parms[] = VTS_BOOL ;
- InvokeHelper(DISPID_ENABLED, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
- }
- long get_Info()
- {
- long result;
- InvokeHelper(0x6002004d, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- BOOL IsSoundCardEnabled()
- {
- BOOL result;
- InvokeHelper(0x35, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- long get_ReadyState()
- {
- long result;
- InvokeHelper(DISPID_READYSTATE, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- LPDISPATCH get_MediaPlayer()
- {
- LPDISPATCH result;
- InvokeHelper(0x457, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
- return result;
- }
- void SetFullScreenMode(BOOL bNewValue)
- {
- static BYTE parms[] =VTS_BOOL;
- InvokeHelper(0x27, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,bNewValue);
- }
- void CActiveMovie3::SetMovieWindowSize(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x26, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- // Properties
- //
- };