5 #ifndef _INC_cOleFlash_H
6 #define _INC_cOleFlash_H
13 #if defined(_WIN32) && defined(_MSC_VER) && defined(USE_FLASH)
24 struct IOleFlashListener
31 virtual void onFlashCall(INT_PTR nChildId, cOleFlashCall* pFC)
37 virtual void OnProgress(
long nPercentDone)
41 virtual void OnReadyStateChange(
long newState)
55 friend class cOleFlashHelper;
56 typedef cOleControl SUPER_t;
78 tagREADYSTATE m_eReadyState;
79 int m_iLoadingPercent;
82 IOleFlashListener* m_pFlashListener;
83 cIUnkPtr<ShockwaveFlashObjects::IShockwaveFlash> m_pFlashInterface;
84 cRefPtr<cOleFlashHelper> m_pFlashHelper;
87 cOleFlash(INT_PTR nChildId, IOleFlashListener* pFlashListener, cOleWebBrowserRedir* pBrowserRedir);
90 virtual bool isDisposed()
const override
92 return m_pFlashListener ==
nullptr;
94 virtual void DisposeThis()
override;
96 virtual tagREADYSTATE get_ReadyState()
const override
101 HRESULT DisableLocalSecurity();
104 virtual HRESULT InitOleControl(OLE_WINDOW_TYPE eDesireWindowType,
bool bDesireTransparent)
override;
113 bool isLoaded()
const;
116 HRESULT get_CurrentFrame()
const;
117 HRESULT put_CurrentFrame(
int theFrameNum);
118 HRESULT get_TotalFrames()
const;
120 cStringA GetCurrentLabel(
const char* theTimeline)
const;
121 HRESULT CallLabel(
const char* theTimeline,
const char* theLabel);
122 HRESULT CallFrame(
const char* theTimeline,
int theFrameNum);
124 HRESULT CallFunction(
const char* pszRequest,
cStringA* psResp =
nullptr);
126 cStringA GetVariable(
const char* theName)
const;
127 HRESULT SetVariable(
const char* theName,
const char* theValue);
129 HRESULT put_Quality(QUALITY_TYPE eQuality);
131 HRESULT put_ScaleMode(SCALEMODE_TYPE eScaleMode);
132 HRESULT put_Transparent(
bool bTransparent);
134 HRESULT SetReturnValue(
const OLECHAR* pszStr);
135 HRESULT SetReturnValue(
const char* pszStr);
137 HRESULT get_OriginalWidth()
const;
138 HRESULT get_OriginalHeight()
const;
140 virtual LRESULT OnWindowMessage1(MSG& msg)
override;
143 virtual HRESULT DrawControl(IDirect3DSurface9* pSurface)
override;
146 virtual void OnMouseMove(
MBUTTON_TYPE button,
const POINT& pt)
override;
151 typedef cRefPtr<cOleFlash> cOleFlashPtr;
interface IShockwaveFlash IShockwaveFlash
Definition: Flash_h.h:45
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
#define UNREFERENCED_PARAMETER(P)
< _WIN32 type thing. get rid of stupid warning.
Definition: SysTypes.h:299
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
UINT32 COLORREF
ABGR (high to low bits)
Definition: cVariantData.h:21
UNITTEST2_PREDEF(cQuadtree)
MBUTTON_TYPE
Definition: cInputBase.h:40
char FILECHAR_t
a UTF8 char in a file name. like TCHAR
Definition: FileName.h:22
cStringT< char > cStringA
Definition: cString.h:635