Click here to Skip to main content
15,896,154 members
Articles / Desktop Programming / MFC

Develop MFC Doc/View Application Which Supports Any Number Document Template

Rate me:
Please Sign up or sign in to vote.
1.57/5 (3 votes)
2 Jun 20052 min read 36.5K   1.7K   26  
This article provides an introduction to TangramLittle, a C++ Framework for MFC and the .NET Framework. Knowledge in MFC and the .NET Framework is assumed.
// TangramLittle Library - version 1.0
// Author:      Sunhui
// Modified by:
// Created:     2005-04-06
// Copyright:   (c) Sunhui
// Licence:     wxWindows licence
//
// This source code is a part of Tangram library.
// The use and distribution terms for this software are covered by the
// The wxWindows Library Licence (http://opensource.org/licenses/wxwindows.php)
// which can be found in the file licence.txt at the root of this distribution.
// By using this software in any fashion, you are agreeing to be bound by
// the terms of this license. You must not remove this notice, or
// any other, from this software.

#pragma once

// CTangramFlashView view
class CXDocument;

/////////////////////////////////////////////////////////////////////////////
// CTangramFlashWnd

class CTangramFlashWnd : public CWnd
{
protected:
	DECLARE_DYNCREATE(CTangramFlashWnd)
public:
	CTangramFlashWnd();           
	virtual ~CTangramFlashWnd();
	CString m_strMoviePath;
	CLSID const& GetClsid()
	{
		static CLSID const clsid
			= { 0xD27CDB6E, 0xAE6D, 0x11CF, { 0x96, 0xB8, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0 } };
		return clsid;
	}
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);

    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:
	long get_ReadyState()
	{
		long result;
		InvokeHelper(DISPID_READYSTATE, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
		return result;
	}
	long get_TotalFrames()
	{
		long result;
		InvokeHelper(0x7c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
		return result;
	}
	BOOL get_Playing()
	{
		BOOL result;
		InvokeHelper(0x7d, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
		return result;
	}
	void put_Playing(BOOL newValue)
	{
		static BYTE parms[] = VTS_BOOL ;
		InvokeHelper(0x7d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	long get_Quality()
	{
		long result;
		InvokeHelper(0x69, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
		return result;
	}
	void put_Quality(long newValue)
	{
		static BYTE parms[] = VTS_I4 ;
		InvokeHelper(0x69, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	long get_ScaleMode()
	{
		long result;
		InvokeHelper(0x78, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
		return result;
	}
	void put_ScaleMode(long newValue)
	{
		static BYTE parms[] = VTS_I4 ;
		InvokeHelper(0x78, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	long get_AlignMode()
	{
		long result;
		InvokeHelper(0x79, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
		return result;
	}
	void put_AlignMode(long newValue)
	{
		static BYTE parms[] = VTS_I4 ;
		InvokeHelper(0x79, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	long get_BackgroundColor()
	{
		long result;
		InvokeHelper(0x7b, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
		return result;
	}
	void put_BackgroundColor(long newValue)
	{
		static BYTE parms[] = VTS_I4 ;
		InvokeHelper(0x7b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	BOOL get_Loop()
	{
		BOOL result;
		InvokeHelper(0x6a, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
		return result;
	}
	void put_Loop(BOOL newValue)
	{
		static BYTE parms[] = VTS_BOOL ;
		InvokeHelper(0x6a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	CString get_Movie()
	{
		CString result;
		InvokeHelper(0x66, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
		return result;
	}
	void put_Movie(LPCTSTR newValue)
	{
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0x66, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	long get_FrameNum()
	{
		long result;
		InvokeHelper(0x6b, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
		return result;
	}
	void put_FrameNum(long newValue)
	{
		static BYTE parms[] = VTS_I4 ;
		InvokeHelper(0x6b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	void SetZoomRect(long left, long top, long right, long bottom)
	{
		static BYTE parms[] = VTS_I4 VTS_I4 VTS_I4 VTS_I4 ;
		InvokeHelper(0x6d, DISPATCH_METHOD, VT_EMPTY, NULL, parms, left, top, right, bottom);
	}
	void Zoom(long factor)
	{
		static BYTE parms[] = VTS_I4 ;
		InvokeHelper(0x76, DISPATCH_METHOD, VT_EMPTY, NULL, parms, factor);
	}
	void Pan(long x, long y, long mode)
	{
		static BYTE parms[] = VTS_I4 VTS_I4 VTS_I4 ;
		InvokeHelper(0x77, DISPATCH_METHOD, VT_EMPTY, NULL, parms, x, y, mode);
	}
	void Play()
	{
		InvokeHelper(0x70, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
	}
	void Stop()
	{
		InvokeHelper(0x71, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
	}
	void Back()
	{
		InvokeHelper(0x72, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
	}
	void Forward()
	{
		InvokeHelper(0x73, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
	}
	void Rewind()
	{
		InvokeHelper(0x74, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
	}
	void StopPlay()
	{
		InvokeHelper(0x7e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
	}
	void GotoFrame(long FrameNum)
	{
		static BYTE parms[] = VTS_I4 ;
		InvokeHelper(0x7f, DISPATCH_METHOD, VT_EMPTY, NULL, parms, FrameNum);
	}
	long CurrentFrame()
	{
		long result;
		InvokeHelper(0x80, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
		return result;
	}
	BOOL IsPlaying()
	{
		BOOL result;
		InvokeHelper(0x81, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
		return result;
	}
	long PercentLoaded()
	{
		long result;
		InvokeHelper(0x82, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
		return result;
	}
	BOOL FrameLoaded(long FrameNum)
	{
		BOOL result;
		static BYTE parms[] = VTS_I4 ;
		InvokeHelper(0x83, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, FrameNum);
		return result;
	}
	long FlashVersion()
	{
		long result;
		InvokeHelper(0x84, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
		return result;
	}
	CString get_WMode()
	{
		CString result;
		InvokeHelper(0x85, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
		return result;
	}
	void put_WMode(LPCTSTR newValue)
	{
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0x85, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	CString get_SAlign()
	{
		CString result;
		InvokeHelper(0x86, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
		return result;
	}
	void put_SAlign(LPCTSTR newValue)
	{
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0x86, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	BOOL get_Menu()
	{
		BOOL result;
		InvokeHelper(0x87, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
		return result;
	}
	void put_Menu(BOOL newValue)
	{
		static BYTE parms[] = VTS_BOOL ;
		InvokeHelper(0x87, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	CString get_Base()
	{
		CString result;
		InvokeHelper(0x88, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
		return result;
	}
	void put_Base(LPCTSTR newValue)
	{
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0x88, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	CString get_Scale()
	{
		CString result;
		InvokeHelper(0x89, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
		return result;
	}
	void put_Scale(LPCTSTR newValue)
	{
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0x89, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	BOOL get_DeviceFont()
	{
		BOOL result;
		InvokeHelper(0x8a, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
		return result;
	}
	void put_DeviceFont(BOOL newValue)
	{
		static BYTE parms[] = VTS_BOOL ;
		InvokeHelper(0x8a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	BOOL get_EmbedMovie()
	{
		BOOL result;
		InvokeHelper(0x8b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
		return result;
	}
	void put_EmbedMovie(BOOL newValue)
	{
		static BYTE parms[] = VTS_BOOL ;
		InvokeHelper(0x8b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	CString get_BGColor()
	{
		CString result;
		InvokeHelper(0x8c, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
		return result;
	}
	void put_BGColor(LPCTSTR newValue)
	{
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0x8c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	CString get_Quality2()
	{
		CString result;
		InvokeHelper(0x8d, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
		return result;
	}
	void put_Quality2(LPCTSTR newValue)
	{
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0x8d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	void LoadMovie(long layer, LPCTSTR url)
	{
		static BYTE parms[] = VTS_I4 VTS_BSTR ;
		InvokeHelper(0x8e, DISPATCH_METHOD, VT_EMPTY, NULL, parms, layer, url);
	}
	void TGotoFrame(LPCTSTR target, long FrameNum)
	{
		static BYTE parms[] = VTS_BSTR VTS_I4 ;
		InvokeHelper(0x8f, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target, FrameNum);
	}
	void TGotoLabel(LPCTSTR target, LPCTSTR label)
	{
		static BYTE parms[] = VTS_BSTR VTS_BSTR ;
		InvokeHelper(0x90, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target, label);
	}
	long TCurrentFrame(LPCTSTR target)
	{
		long result;
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0x91, DISPATCH_METHOD, VT_I4, (void*)&result, parms, target);
		return result;
	}
	CString TCurrentLabel(LPCTSTR target)
	{
		CString result;
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0x92, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, target);
		return result;
	}
	void TPlay(LPCTSTR target)
	{
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0x93, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target);
	}
	void TStopPlay(LPCTSTR target)
	{
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0x94, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target);
	}
	void SetVariable(LPCTSTR name, LPCTSTR value)
	{
		static BYTE parms[] = VTS_BSTR VTS_BSTR ;
		InvokeHelper(0x97, DISPATCH_METHOD, VT_EMPTY, NULL, parms, name, value);
	}
	CString GetVariable(LPCTSTR name)
	{
		CString result;
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0x98, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, name);
		return result;
	}
	void TSetProperty(LPCTSTR target, long property, LPCTSTR value)
	{
		static BYTE parms[] = VTS_BSTR VTS_I4 VTS_BSTR ;
		InvokeHelper(0x99, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target, property, value);
	}
	CString TGetProperty(LPCTSTR target, long property)
	{
		CString result;
		static BYTE parms[] = VTS_BSTR VTS_I4 ;
		InvokeHelper(0x9a, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, target, property);
		return result;
	}
	void TCallFrame(LPCTSTR target, long FrameNum)
	{
		static BYTE parms[] = VTS_BSTR VTS_I4 ;
		InvokeHelper(0x9b, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target, FrameNum);
	}
	void TCallLabel(LPCTSTR target, LPCTSTR label)
	{
		static BYTE parms[] = VTS_BSTR VTS_BSTR ;
		InvokeHelper(0x9c, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target, label);
	}
	void TSetPropertyNum(LPCTSTR target, long property, double value)
	{
		static BYTE parms[] = VTS_BSTR VTS_I4 VTS_R8 ;
		InvokeHelper(0x9d, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target, property, value);
	}
	double TGetPropertyNum(LPCTSTR target, long property)
	{
		double result;
		static BYTE parms[] = VTS_BSTR VTS_I4 ;
		InvokeHelper(0x9e, DISPATCH_METHOD, VT_R8, (void*)&result, parms, target, property);
		return result;
	}
	double TGetPropertyAsNumber(LPCTSTR target, long property)
	{
		double result;
		static BYTE parms[] = VTS_BSTR VTS_I4 ;
		InvokeHelper(0xac, DISPATCH_METHOD, VT_R8, (void*)&result, parms, target, property);
		return result;
	}
	CString get_SWRemote()
	{
		CString result;
		InvokeHelper(0x9f, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
		return result;
	}
	void put_SWRemote(LPCTSTR newValue)
	{
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0x9f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	CString get_FlashVars()
	{
		CString result;
		InvokeHelper(0xaa, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
		return result;
	}
	void put_FlashVars(LPCTSTR newValue)
	{
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0xaa, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	CString get_AllowScriptAccess()
	{
		CString result;
		InvokeHelper(0xab, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
		return result;
	}
	void put_AllowScriptAccess(LPCTSTR newValue)
	{
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0xab, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}
	CString get_MovieData()
	{
		CString result;
		InvokeHelper(0xbe, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
		return result;
	}
	void put_MovieData(LPCTSTR newValue)
	{
		static BYTE parms[] = VTS_BSTR ;
		InvokeHelper(0xbe, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
	}


	DECLARE_MESSAGE_MAP()
	afx_msg void OnSize(UINT nType, int cx, int cy);
};


class CTangramFlashView : public CView
{
	DECLARE_DYNCREATE(CTangramFlashView)
protected:
	CTangramFlashView();           // protected constructor used by dynamic creation
	virtual ~CTangramFlashView();
	CTangramFlashWnd	m_TangramFlashWnd;

public:
	CRect	m_OldClientRect;
	BOOL	m_bFlashMenu;
	BOOL	m_bBKView;
	CXDocument*		m_pDoc;
	CComPtr<IDispatch>	m_pFlashDisp;
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

// Operations
public:
	long get_ReadyState()
	{
		return m_TangramFlashWnd.get_ReadyState();
	}
	long get_TotalFrames()
	{
		return m_TangramFlashWnd.get_TotalFrames();
	}
	BOOL get_Playing()
	{
		return m_TangramFlashWnd.get_Playing();
	}
	void put_Playing(BOOL newValue)
	{
		m_TangramFlashWnd.put_Playing(newValue);
	}
	long get_Quality()
	{
		return m_TangramFlashWnd.get_Quality();
	}
	void put_Quality(long newValue)
	{
		m_TangramFlashWnd.put_Quality(newValue);
	}
	long get_ScaleMode()
	{
		return m_TangramFlashWnd.get_ScaleMode();
	}
	void put_ScaleMode(long newValue)
	{
		m_TangramFlashWnd.put_ScaleMode(newValue);
	}
	long get_AlignMode()
	{
		return m_TangramFlashWnd.get_AlignMode();
	}
	void put_AlignMode(long newValue)
	{
		m_TangramFlashWnd.put_AlignMode(newValue);
	}
	long get_BackgroundColor()
	{
		return m_TangramFlashWnd.get_BackgroundColor();
	}
	void put_BackgroundColor(long newValue)
	{
		m_TangramFlashWnd.put_BackgroundColor(newValue);
	}
	BOOL get_Loop()
	{
		return m_TangramFlashWnd.get_Loop();
	}
	void put_Loop(BOOL newValue)
	{
		m_TangramFlashWnd.put_Loop(newValue);
	}
	CString get_Movie()
	{
		return m_TangramFlashWnd.get_Movie();
	}
	void put_Movie(LPCTSTR newValue)
	{
		m_TangramFlashWnd.put_Movie(newValue);
	}
	long get_FrameNum()
	{
		return m_TangramFlashWnd.get_FrameNum();
	}
	void put_FrameNum(long newValue)
	{
		return m_TangramFlashWnd.put_FrameNum(newValue);
	}
	void SetZoomRect(long left, long top, long right, long bottom)
	{
		m_TangramFlashWnd.SetZoomRect(left, top, right, bottom);
	}
	void Zoom(long factor)
	{
		m_TangramFlashWnd.Zoom(factor);
	}
	void Pan(long x, long y, long mode)
	{
		m_TangramFlashWnd.Pan(x, y, mode);
	}
	void Play()
	{
		m_TangramFlashWnd.Play();
	}
	void Stop()
	{
		m_TangramFlashWnd.Stop();
	}
	void Back()
	{
		m_TangramFlashWnd.Back();
	}
	void Forward()
	{
		m_TangramFlashWnd.Forward();
	}
	void Rewind()
	{
		m_TangramFlashWnd.Rewind();
	}
	void StopPlay()
	{
		m_TangramFlashWnd.StopPlay();
	}
	void GotoFrame(long FrameNum)
	{
		m_TangramFlashWnd.GotoFrame(FrameNum);
	}
	long CurrentFrame()
	{
		return m_TangramFlashWnd.CurrentFrame();
	}
	BOOL IsPlaying()
	{
		return m_TangramFlashWnd.IsPlaying();
	}
	long PercentLoaded()
	{
		return m_TangramFlashWnd.PercentLoaded();
	}
	BOOL FrameLoaded(long FrameNum)
	{
		return m_TangramFlashWnd.FrameLoaded(FrameNum);
	}
	long FlashVersion()
	{
		return m_TangramFlashWnd.FlashVersion();
	}
	CString get_WMode()
	{
		return m_TangramFlashWnd.get_WMode();
	}
	void put_WMode(LPCTSTR newValue)
	{
		m_TangramFlashWnd.put_WMode(newValue);
	}
	CString get_SAlign()
	{
		return m_TangramFlashWnd.get_SAlign();
	}
	void put_SAlign(LPCTSTR newValue)
	{
		m_TangramFlashWnd.put_SAlign(newValue);
	}
	BOOL get_Menu()
	{
		return m_TangramFlashWnd.get_Menu();
	}
	void put_Menu(BOOL newValue)
	{
		m_TangramFlashWnd.put_Menu(newValue);
	}
	CString get_Base()
	{
		return m_TangramFlashWnd.get_Base();
	}
	void put_Base(LPCTSTR newValue)
	{
		m_TangramFlashWnd.put_Base(newValue);
	}
	CString get_Scale()
	{
		return m_TangramFlashWnd.get_Scale();
	}
	void put_Scale(LPCTSTR newValue)
	{
		m_TangramFlashWnd.put_Scale(newValue);
	}
	BOOL get_DeviceFont()
	{
		return m_TangramFlashWnd.get_DeviceFont();
	}
	void put_DeviceFont(BOOL newValue)
	{
		m_TangramFlashWnd.put_DeviceFont(newValue);
	}
	BOOL get_EmbedMovie()
	{
		return m_TangramFlashWnd.get_EmbedMovie();
	}
	void put_EmbedMovie(BOOL newValue)
	{
		m_TangramFlashWnd.put_EmbedMovie(newValue);
	}
	CString get_BGColor()
	{
		return m_TangramFlashWnd.get_BGColor();
	}
	void put_BGColor(LPCTSTR newValue)
	{
		m_TangramFlashWnd.put_BGColor(newValue);
	}
	CString get_Quality2()
	{
		return m_TangramFlashWnd.get_Quality2();
	}
	void put_Quality2(LPCTSTR newValue)
	{
		m_TangramFlashWnd.put_Quality2(newValue);
	}
	void LoadMovie(long layer, LPCTSTR url)
	{
		m_TangramFlashWnd.LoadMovie(layer,url);
	}
	void TGotoFrame(LPCTSTR target, long FrameNum)
	{
		m_TangramFlashWnd.TGotoFrame(target,FrameNum);
	}
	void TGotoLabel(LPCTSTR target, LPCTSTR label)
	{
		m_TangramFlashWnd.TGotoLabel(target,label);
	}
	long TCurrentFrame(LPCTSTR target)
	{
		return m_TangramFlashWnd.TCurrentFrame(target);
	}
	CString TCurrentLabel(LPCTSTR target)
	{
		return m_TangramFlashWnd.TCurrentLabel(target);
	}
	void TPlay(LPCTSTR target)
	{
		m_TangramFlashWnd.TPlay(target);
	}
	void TStopPlay(LPCTSTR target)
	{
		m_TangramFlashWnd.TStopPlay(target);
	}
	void SetVariable(LPCTSTR name, LPCTSTR value)
	{
		m_TangramFlashWnd.SetVariable(name,value);
	}
	CString GetVariable(LPCTSTR name)
	{
		return m_TangramFlashWnd.GetVariable(name);
	}
	void TSetProperty(LPCTSTR target, long property, LPCTSTR value)
	{
		m_TangramFlashWnd.TSetProperty(target,property,value);
	}
	CString TGetProperty(LPCTSTR target, long property)
	{
		return m_TangramFlashWnd.TGetProperty(target,property);
	}
	void TCallFrame(LPCTSTR target, long FrameNum)
	{
		m_TangramFlashWnd.TCallFrame(target,FrameNum);
	}
	void TCallLabel(LPCTSTR target, LPCTSTR label)
	{
		m_TangramFlashWnd.TCallLabel(target,label);
	}
	void TSetPropertyNum(LPCTSTR target, long property, double value)
	{
		m_TangramFlashWnd.TSetPropertyNum(target, property, value);
	}
	double TGetPropertyNum(LPCTSTR target, long property)
	{
		return m_TangramFlashWnd.TGetPropertyNum(target,property);
	}
	double TGetPropertyAsNumber(LPCTSTR target, long property)
	{
		return m_TangramFlashWnd.TGetPropertyAsNumber(target,property);
	}
	CString get_SWRemote()
	{
		return m_TangramFlashWnd.get_SWRemote();
	}
	void put_SWRemote(LPCTSTR newValue)
	{
		m_TangramFlashWnd.put_SWRemote(newValue);
	}
	CString get_FlashVars()
	{
		return m_TangramFlashWnd.get_FlashVars();
	}
	void put_FlashVars(LPCTSTR newValue)
	{
		m_TangramFlashWnd.put_FlashVars(newValue);
	}
	CString get_AllowScriptAccess()
	{
		return m_TangramFlashWnd.get_AllowScriptAccess();
	}
	void put_AllowScriptAccess(LPCTSTR newValue)
	{
		m_TangramFlashWnd.put_AllowScriptAccess(newValue);
	}
	CString get_MovieData()
	{
		return m_TangramFlashWnd.get_MovieData();
	}
	void put_MovieData(LPCTSTR newValue)
	{
		m_TangramFlashWnd.put_MovieData(newValue);
	}

protected:
	DECLARE_MESSAGE_MAP()
	DECLARE_EVENTSINK_MAP()
public:
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
public:
	virtual void OnReadyStateChangeShockwaveflash(long newState);
	virtual void OnProgressShockwaveflash(long percentDone);
	virtual void FSCommandShockwaveflash(LPCTSTR command, LPCTSTR args);
	BOOL LoadFromResource(CString strResType, CString strResName);
protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnWindowPosChanging(WINDOWPOS* lpwndpos);
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here



Comments and Discussions