📄 flashwnd.cpp
字号:
/********************************************************************
created: 2006/07/19
created: 19:7:2006 22:36
filename: D:\BeiJing\VC6\SmallTech\MFCFlash\FlashWnd.cpp
file path: D:\BeiJing\VC6\SmallTech\MFCFlash
file base: FlashWnd
file ext: cpp
author: 万连文
purpose: 现实Flash的窗口类
*********************************************************************/
#include "stdafx.h"
#include "MFCFlash.h"
#include "FlashWnd.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFlashWnd
CFlashWnd::CFlashWnd()
{
}
CFlashWnd::~CFlashWnd()
{
}
BEGIN_MESSAGE_MAP(CFlashWnd, CWnd)
//{{AFX_MSG_MAP(CFlashWnd)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CFlashWnd message handlers
const CLSID& CFlashWnd::GetCLSID()
{
const static CLSID clsid
= {0xD27CDB6E, 0xAE6D, 0x11CF, {0x96, 0xB8, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0}};
return clsid;
}
BOOL CFlashWnd::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)
{
BOOL bRet = FALSE;
CreateControl(GetCLSID(), lpszWindowName, dwStyle, rect, pParentWnd, nID);
return bRet;
}
void CFlashWnd::PutFlashFile(CString strPath)
{
static BYTE parms[] = VTS_BSTR;
InvokeHelper(0x66, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, LPCTSTR(strPath));
}
void CFlashWnd::Play()
{
InvokeHelper(0x70, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
CString CFlashWnd::GetVariable(LPCTSTR name)
{
CString result;
static BYTE parms[] = VTS_BSTR;
InvokeHelper(0x98, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, name);
return result;
}
void CFlashWnd::SetVariable(LPCTSTR name, LPCTSTR value)
{
static BYTE parms[] = VTS_BSTR VTS_BSTR ;
InvokeHelper(0x97, DISPATCH_METHOD, VT_EMPTY, NULL, parms, name, value);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -