powerplayer.cpp
资源名称:PPStream.zip [点击查看]
上传用户:hju612
上传日期:2022-08-09
资源大小:31k
文件大小:4k
源码类别:
P2P编程
开发平台:
Visual C++
- // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
- // NOTE: Do not modify the contents of this file. If this class is regenerated by
- // Microsoft Visual C++, your modifications will be overwritten.
- #include "stdafx.h"
- #include "powerplayer.h"
- /////////////////////////////////////////////////////////////////////////////
- // CPowerPlayer
- IMPLEMENT_DYNCREATE(CPowerPlayer, CWnd)
- /////////////////////////////////////////////////////////////////////////////
- // CPowerPlayer properties
- CString CPowerPlayer::GetSrc()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- void CPowerPlayer::SetSrc(LPCTSTR propVal)
- {
- SetProperty(0x1, VT_BSTR, propVal);
- }
- BOOL CPowerPlayer::GetShowControl()
- {
- BOOL result;
- GetProperty(0x2, VT_BOOL, (void*)&result);
- return result;
- }
- void CPowerPlayer::SetShowControl(BOOL propVal)
- {
- SetProperty(0x2, VT_BOOL, propVal);
- }
- BOOL CPowerPlayer::GetAutostart()
- {
- BOOL result;
- GetProperty(0x3, VT_BOOL, (void*)&result);
- return result;
- }
- void CPowerPlayer::SetAutostart(BOOL propVal)
- {
- SetProperty(0x3, VT_BOOL, propVal);
- }
- BOOL CPowerPlayer::GetTopmost()
- {
- BOOL result;
- GetProperty(0x4, VT_BOOL, (void*)&result);
- return result;
- }
- void CPowerPlayer::SetTopmost(BOOL propVal)
- {
- SetProperty(0x4, VT_BOOL, propVal);
- }
- BOOL CPowerPlayer::GetAutosize()
- {
- BOOL result;
- GetProperty(0x5, VT_BOOL, (void*)&result);
- return result;
- }
- void CPowerPlayer::SetAutosize(BOOL propVal)
- {
- SetProperty(0x5, VT_BOOL, propVal);
- }
- CString CPowerPlayer::GetScrollTextURL()
- {
- CString result;
- GetProperty(0x10, VT_BSTR, (void*)&result);
- return result;
- }
- void CPowerPlayer::SetScrollTextURL(LPCTSTR propVal)
- {
- SetProperty(0x10, VT_BSTR, propVal);
- }
- CString CPowerPlayer::GetSkinPath()
- {
- CString result;
- GetProperty(0x11, VT_BSTR, (void*)&result);
- return result;
- }
- void CPowerPlayer::SetSkinPath(LPCTSTR propVal)
- {
- SetProperty(0x11, VT_BSTR, propVal);
- }
- CString CPowerPlayer::GetLogo()
- {
- CString result;
- GetProperty(0x12, VT_BSTR, (void*)&result);
- return result;
- }
- void CPowerPlayer::SetLogo(LPCTSTR propVal)
- {
- SetProperty(0x12, VT_BSTR, propVal);
- }
- CString CPowerPlayer::GetClient()
- {
- CString result;
- GetProperty(0x13, VT_BSTR, (void*)&result);
- return result;
- }
- void CPowerPlayer::SetClient(LPCTSTR propVal)
- {
- SetProperty(0x13, VT_BSTR, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CPowerPlayer operations
- BOOL CPowerPlayer::Play()
- {
- BOOL result;
- InvokeHelper(0x6, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- BOOL CPowerPlayer::Stop()
- {
- BOOL result;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- BOOL CPowerPlayer::IsPsConnected()
- {
- BOOL result;
- InvokeHelper(0x8, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- long CPowerPlayer::GetHWND()
- {
- long result;
- InvokeHelper(0x9, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
- return result;
- }
- long CPowerPlayer::GetPlayPosition()
- {
- long result;
- InvokeHelper(0xa, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CPowerPlayer::GetAuthorString(BSTR* pbstr)
- {
- static BYTE parms[] =
- VTS_PBSTR;
- InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- pbstr);
- }
- void CPowerPlayer::GetTitleString(BSTR* pbstr)
- {
- static BYTE parms[] =
- VTS_PBSTR;
- InvokeHelper(0xc, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- pbstr);
- }
- long CPowerPlayer::GetPlayDuration()
- {
- long result;
- InvokeHelper(0xd, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
- return result;
- }
- BOOL CPowerPlayer::GetFullScreen()
- {
- BOOL result;
- InvokeHelper(0xe, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void CPowerPlayer::SetFullScreen(long bFullScreen)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- bFullScreen);
- }
- void CPowerPlayer::AboutBox()
- {
- InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }