www.pudn.com > MyBeautyPlayer.rar > CMediaBindStream.h
// CMediaBindStream.h : Declaration of ActiveX Control wrapper class(es) created by Microsoft Visual C++
#pragma once
/////////////////////////////////////////////////////////////////////////////
// CMediaBindStream
class CMediaBindStream : public CWnd
{
protected:
DECLARE_DYNCREATE(CMediaBindStream)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x22D6F312, 0xB0F6, 0x11D0, { 0x94, 0xAB, 0x0, 0x80, 0xC7, 0x4C, 0x7E, 0x95 } };
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);
}
// Attributes
public:
// Operations
public:
void LoadMoniker(LPCTSTR bszTransferContext, LPCTSTR bszUrl)
{
static BYTE parms[] = VTS_BSTR VTS_BSTR ;
InvokeHelper(0x1f44, DISPATCH_METHOD, VT_EMPTY, NULL, parms, bszTransferContext, bszUrl);
}
};