00001
00002
00003
00004
00005
00006 #if !defined(AFX_SHOCKWAVEFLASH_H__84CAFFB7_2487_4C5F_8D71_4AFED296F3A9__INCLUDED_)
00007 #define AFX_SHOCKWAVEFLASH_H__84CAFFB7_2487_4C5F_8D71_4AFED296F3A9__INCLUDED_
00008
00009 #if _MSC_VER > 1000
00010 #pragma once
00011 #endif
00012
00013 class CShockwaveFlash : public CWnd
00014 {
00015 protected:
00016 DECLARE_DYNCREATE(CShockwaveFlash)
00017 public:
00018 CLSID const& GetClsid()
00019 {
00020 static CLSID const clsid
00021 = { 0xd27cdb6e, 0xae6d, 0x11cf, { 0x96, 0xb8, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0 } };
00022 return clsid;
00023 }
00024 virtual BOOL Create(LPCTSTR lpszClassName,
00025 LPCTSTR lpszWindowName, DWORD dwStyle,
00026 const RECT& rect,
00027 CWnd* pParentWnd, UINT nID,
00028 CCreateContext* pContext = NULL)
00029 { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
00030
00031 BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
00032 const RECT& rect, CWnd* pParentWnd, UINT nID,
00033 CFile* pPersist = NULL, BOOL bStorage = FALSE,
00034 BSTR bstrLicKey = NULL)
00035 { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
00036 pPersist, bStorage, bstrLicKey); }
00037
00038 public:
00039
00040 public:
00041 long GetReadyState();
00042 long GetTotalFrames();
00043 BOOL GetPlaying();
00044 void SetPlaying(BOOL bNewValue);
00045 long GetQuality();
00046 void SetQuality(long nNewValue);
00047 long GetScaleMode();
00048 void SetScaleMode(long nNewValue);
00049 long GetAlignMode();
00050 void SetAlignMode(long nNewValue);
00051 long GetBackgroundColor();
00052 void SetBackgroundColor(long nNewValue);
00053 BOOL GetLoop();
00054 void SetLoop(BOOL bNewValue);
00055 CString GetMovie();
00056 void SetMovie(LPCTSTR lpszNewValue);
00057 long GetFrameNum();
00058 void SetFrameNum(long nNewValue);
00059 void SetZoomRect(long left, long top, long right, long bottom);
00060 void Zoom(long factor);
00061 void Pan(long x, long y, long mode);
00062 void Play();
00063 void Stop();
00064 void Back();
00065 void Forward();
00066 void Rewind();
00067 void StopPlay();
00068 void GotoFrame(long FrameNum);
00069 long CurrentFrame();
00070 BOOL IsPlaying();
00071 long PercentLoaded();
00072 BOOL FrameLoaded(long FrameNum);
00073 long FlashVersion();
00074 CString GetWMode();
00075 void SetWMode(LPCTSTR lpszNewValue);
00076 CString GetSAlign();
00077 void SetSAlign(LPCTSTR lpszNewValue);
00078 BOOL GetMenu();
00079 void SetMenu(BOOL bNewValue);
00080 CString GetBase();
00081 void SetBase(LPCTSTR lpszNewValue);
00082 CString GetScale();
00083 void SetScale(LPCTSTR lpszNewValue);
00084 BOOL GetDeviceFont();
00085 void SetDeviceFont(BOOL bNewValue);
00086 BOOL GetEmbedMovie();
00087 void SetEmbedMovie(BOOL bNewValue);
00088 CString GetBGColor();
00089 void SetBGColor(LPCTSTR lpszNewValue);
00090 CString GetQuality2();
00091 void SetQuality2(LPCTSTR lpszNewValue);
00092 void LoadMovie(long layer, LPCTSTR url);
00093 void TGotoFrame(LPCTSTR target, long FrameNum);
00094 void TGotoLabel(LPCTSTR target, LPCTSTR label);
00095 long TCurrentFrame(LPCTSTR target);
00096 CString TCurrentLabel(LPCTSTR target);
00097 void TPlay(LPCTSTR target);
00098 void TStopPlay(LPCTSTR target);
00099 void SetVariable(LPCTSTR name, LPCTSTR value);
00100 CString GetVariable(LPCTSTR name);
00101 void TSetProperty(LPCTSTR target, long property, LPCTSTR value);
00102 CString TGetProperty(LPCTSTR target, long property);
00103 void TCallFrame(LPCTSTR target, long FrameNum);
00104 void TCallLabel(LPCTSTR target, LPCTSTR label);
00105 void TSetPropertyNum(LPCTSTR target, long property, double value);
00106 double TGetPropertyNum(LPCTSTR target, long property);
00107 double TGetPropertyAsNumber(LPCTSTR target, long property);
00108 CString GetSWRemote();
00109 void SetSWRemote(LPCTSTR lpszNewValue);
00110 CString GetFlashVars();
00111 void SetFlashVars(LPCTSTR lpszNewValue);
00112 CString GetAllowScriptAccess();
00113 void SetAllowScriptAccess(LPCTSTR lpszNewValue);
00114 CString GetMovieData();
00115 void SetMovieData(LPCTSTR lpszNewValue);
00116 LPUNKNOWN GetInlineData();
00117 void SetInlineData(LPUNKNOWN newValue);
00118 BOOL GetSeamlessTabbing();
00119 void SetSeamlessTabbing(BOOL bNewValue);
00120 void EnforceLocalSecurity();
00121 BOOL GetProfile();
00122 void SetProfile(BOOL bNewValue);
00123 CString GetProfileAddress();
00124 void SetProfileAddress(LPCTSTR lpszNewValue);
00125 long GetProfilePort();
00126 void SetProfilePort(long nNewValue);
00127 CString CallFunction(LPCTSTR request);
00128 void SetReturnValue(LPCTSTR returnValue);
00129 void DisableLocalSecurity();
00130 CString GetAllowNetworking();
00131 void SetAllowNetworking(LPCTSTR lpszNewValue);
00132 CString GetAllowFullScreen();
00133 void SetAllowFullScreen(LPCTSTR lpszNewValue);
00134 };
00135
00136
00137
00138 #endif