class CTPPlayerAtl : public CWnd
{
protected:
DECLARE_DYNCREATE(CTPPlayerAtl)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x833FA59, 0xA823, 0x4FE1, { 0xAF, 0xD, 0xD1, 0xF0, 0x6, 0xD, 0x2F, 0xCC } };
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);
}
class CITPPlayerAtlEvents : public COleDispatchDriver
{
public:
CITPPlayerAtlEvents() {} // 调用 COleDispatchDriver 默认构造函数
CITPPlayerAtlEvents(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
CITPPlayerAtlEvents(const CITPPlayerAtlEvents& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
// 属性
BEGIN_EVENTSINK_MAP(CTestInputVideoStreamDlg, CDialog)
ON_EVENT_RANGE(CTestInputVideoStreamDlg, 1990,2005, 0x01, CTestInputVideoStreamDlg::OnMouseEvent,VTS_I4 VTS_I4 VTS_I4 VTS_I4)
ON_EVENT_RANGE(CTestInputVideoStreamDlg, 1990,2005, 0x02, CTestInputVideoStreamDlg::OnEvent,VTS_I4 VTS_I4 VTS_BSTR)
//ON_EVENT(CTestInputVideoStreamDlg, 2000, 1, CTestInputVideoStreamDlg::OnMouseEvent2, VTS_I4 VTS_I4 VTS_BSTR)
//ON_EVENT(CTestInputVideoStreamDlg, 2000, 2, CTestInputVideoStreamDlg::OnEvent2, VTS_I4 VTS_PUI1 VTS_I4 VTS_PUI1 VTS_I4)
END_EVENTSINK_MAP()
SetDlgCtrlID(2000); (责任编辑:文得莉工作室) |