00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #pragma once
00025
00027
00028
00029 class CShockwaveFlash : public CWnd
00030 {
00031 protected:
00032 DECLARE_DYNCREATE(CShockwaveFlash)
00033 public:
00034 CLSID const& GetClsid()
00035 {
00036 static CLSID const clsid
00037 = { 0xD27CDB6E, 0xAE6D, 0x11CF, { 0x96, 0xB8, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0 } };
00038 return clsid;
00039 }
00040 virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,
00041 const RECT& rect, CWnd* pParentWnd, UINT nID,
00042 CCreateContext* pContext = NULL)
00043 {
00044 return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID);
00045 }
00046
00047 BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd,
00048 UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE,
00049 BSTR bstrLicKey = NULL)
00050 {
00051 return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
00052 pPersist, bStorage, bstrLicKey);
00053 }
00054
00055
00056 public:
00057
00058
00059 public:
00060
00061 long get_ReadyState()
00062 {
00063 long result;
00064 InvokeHelper(DISPID_READYSTATE, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
00065 return result;
00066 }
00067 long get_TotalFrames()
00068 {
00069 long result;
00070 InvokeHelper(0x7c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
00071 return result;
00072 }
00073 BOOL get_Playing()
00074 {
00075 BOOL result;
00076 InvokeHelper(0x7d, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
00077 return result;
00078 }
00079 void put_Playing(BOOL newValue)
00080 {
00081 static BYTE parms[] = VTS_BOOL ;
00082 InvokeHelper(0x7d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00083 }
00084 long get_Quality()
00085 {
00086 long result;
00087 InvokeHelper(0x69, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
00088 return result;
00089 }
00090 void put_Quality(long newValue)
00091 {
00092 static BYTE parms[] = VTS_I4 ;
00093 InvokeHelper(0x69, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00094 }
00095 long get_ScaleMode()
00096 {
00097 long result;
00098 InvokeHelper(0x78, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
00099 return result;
00100 }
00101 void put_ScaleMode(long newValue)
00102 {
00103 static BYTE parms[] = VTS_I4 ;
00104 InvokeHelper(0x78, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00105 }
00106 long get_AlignMode()
00107 {
00108 long result;
00109 InvokeHelper(0x79, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
00110 return result;
00111 }
00112 void put_AlignMode(long newValue)
00113 {
00114 static BYTE parms[] = VTS_I4 ;
00115 InvokeHelper(0x79, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00116 }
00117 long get_BackgroundColor()
00118 {
00119 long result;
00120 InvokeHelper(0x7b, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
00121 return result;
00122 }
00123 void put_BackgroundColor(long newValue)
00124 {
00125 static BYTE parms[] = VTS_I4 ;
00126 InvokeHelper(0x7b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00127 }
00128 BOOL get_Loop()
00129 {
00130 BOOL result;
00131 InvokeHelper(0x6a, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
00132 return result;
00133 }
00134 void put_Loop(BOOL newValue)
00135 {
00136 static BYTE parms[] = VTS_BOOL ;
00137 InvokeHelper(0x6a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00138 }
00139 CString get_Movie()
00140 {
00141 CString result;
00142 InvokeHelper(0x66, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
00143 return result;
00144 }
00145 void put_Movie(LPCTSTR newValue)
00146 {
00147 static BYTE parms[] = VTS_BSTR ;
00148 InvokeHelper(0x66, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00149 }
00150 long get_FrameNum()
00151 {
00152 long result;
00153 InvokeHelper(0x6b, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
00154 return result;
00155 }
00156 void put_FrameNum(long newValue)
00157 {
00158 static BYTE parms[] = VTS_I4 ;
00159 InvokeHelper(0x6b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00160 }
00161 void SetZoomRect(long left, long top, long right, long bottom)
00162 {
00163 static BYTE parms[] = VTS_I4 VTS_I4 VTS_I4 VTS_I4 ;
00164 InvokeHelper(0x6d, DISPATCH_METHOD, VT_EMPTY, NULL, parms, left, top, right, bottom);
00165 }
00166 void Zoom(long factor)
00167 {
00168 static BYTE parms[] = VTS_I4 ;
00169 InvokeHelper(0x76, DISPATCH_METHOD, VT_EMPTY, NULL, parms, factor);
00170 }
00171 void Pan(long x, long y, long mode)
00172 {
00173 static BYTE parms[] = VTS_I4 VTS_I4 VTS_I4 ;
00174 InvokeHelper(0x77, DISPATCH_METHOD, VT_EMPTY, NULL, parms, x, y, mode);
00175 }
00176 void Play()
00177 {
00178 InvokeHelper(0x70, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
00179 }
00180 void Stop()
00181 {
00182 InvokeHelper(0x71, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
00183 }
00184 void Back()
00185 {
00186 InvokeHelper(0x72, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
00187 }
00188 void Forward()
00189 {
00190 InvokeHelper(0x73, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
00191 }
00192 void Rewind()
00193 {
00194 InvokeHelper(0x74, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
00195 }
00196 void StopPlay()
00197 {
00198 InvokeHelper(0x7e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
00199 }
00200 void GotoFrame(long FrameNum)
00201 {
00202 static BYTE parms[] = VTS_I4 ;
00203 InvokeHelper(0x7f, DISPATCH_METHOD, VT_EMPTY, NULL, parms, FrameNum);
00204 }
00205 long CurrentFrame()
00206 {
00207 long result;
00208 InvokeHelper(0x80, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
00209 return result;
00210 }
00211 BOOL IsPlaying()
00212 {
00213 BOOL result;
00214 InvokeHelper(0x81, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
00215 return result;
00216 }
00217 long PercentLoaded()
00218 {
00219 long result;
00220 InvokeHelper(0x82, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
00221 return result;
00222 }
00223 BOOL FrameLoaded(long FrameNum)
00224 {
00225 BOOL result;
00226 static BYTE parms[] = VTS_I4 ;
00227 InvokeHelper(0x83, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, FrameNum);
00228 return result;
00229 }
00230 long FlashVersion()
00231 {
00232 long result;
00233 InvokeHelper(0x84, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
00234 return result;
00235 }
00236 CString get_WMode()
00237 {
00238 CString result;
00239 InvokeHelper(0x85, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
00240 return result;
00241 }
00242 void put_WMode(LPCTSTR newValue)
00243 {
00244 static BYTE parms[] = VTS_BSTR ;
00245 InvokeHelper(0x85, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00246 }
00247 CString get_SAlign()
00248 {
00249 CString result;
00250 InvokeHelper(0x86, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
00251 return result;
00252 }
00253 void put_SAlign(LPCTSTR newValue)
00254 {
00255 static BYTE parms[] = VTS_BSTR ;
00256 InvokeHelper(0x86, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00257 }
00258 BOOL get_Menu()
00259 {
00260 BOOL result;
00261 InvokeHelper(0x87, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
00262 return result;
00263 }
00264 void put_Menu(BOOL newValue)
00265 {
00266 static BYTE parms[] = VTS_BOOL ;
00267 InvokeHelper(0x87, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00268 }
00269 CString get_Base()
00270 {
00271 CString result;
00272 InvokeHelper(0x88, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
00273 return result;
00274 }
00275 void put_Base(LPCTSTR newValue)
00276 {
00277 static BYTE parms[] = VTS_BSTR ;
00278 InvokeHelper(0x88, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00279 }
00280 CString get_Scale()
00281 {
00282 CString result;
00283 InvokeHelper(0x89, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
00284 return result;
00285 }
00286 void put_Scale(LPCTSTR newValue)
00287 {
00288 static BYTE parms[] = VTS_BSTR ;
00289 InvokeHelper(0x89, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00290 }
00291 BOOL get_DeviceFont()
00292 {
00293 BOOL result;
00294 InvokeHelper(0x8a, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
00295 return result;
00296 }
00297 void put_DeviceFont(BOOL newValue)
00298 {
00299 static BYTE parms[] = VTS_BOOL ;
00300 InvokeHelper(0x8a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00301 }
00302 BOOL get_EmbedMovie()
00303 {
00304 BOOL result;
00305 InvokeHelper(0x8b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
00306 return result;
00307 }
00308 void put_EmbedMovie(BOOL newValue)
00309 {
00310 static BYTE parms[] = VTS_BOOL ;
00311 InvokeHelper(0x8b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00312 }
00313 CString get_BGColor()
00314 {
00315 CString result;
00316 InvokeHelper(0x8c, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
00317 return result;
00318 }
00319 void put_BGColor(LPCTSTR newValue)
00320 {
00321 static BYTE parms[] = VTS_BSTR ;
00322 InvokeHelper(0x8c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00323 }
00324 CString get_Quality2()
00325 {
00326 CString result;
00327 InvokeHelper(0x8d, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
00328 return result;
00329 }
00330 void put_Quality2(LPCTSTR newValue)
00331 {
00332 static BYTE parms[] = VTS_BSTR ;
00333 InvokeHelper(0x8d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00334 }
00335 void LoadMovie(long layer, LPCTSTR url)
00336 {
00337 static BYTE parms[] = VTS_I4 VTS_BSTR ;
00338 InvokeHelper(0x8e, DISPATCH_METHOD, VT_EMPTY, NULL, parms, layer, url);
00339 }
00340 void TGotoFrame(LPCTSTR target, long FrameNum)
00341 {
00342 static BYTE parms[] = VTS_BSTR VTS_I4 ;
00343 InvokeHelper(0x8f, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target, FrameNum);
00344 }
00345 void TGotoLabel(LPCTSTR target, LPCTSTR label)
00346 {
00347 static BYTE parms[] = VTS_BSTR VTS_BSTR ;
00348 InvokeHelper(0x90, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target, label);
00349 }
00350 long TCurrentFrame(LPCTSTR target)
00351 {
00352 long result;
00353 static BYTE parms[] = VTS_BSTR ;
00354 InvokeHelper(0x91, DISPATCH_METHOD, VT_I4, (void*)&result, parms, target);
00355 return result;
00356 }
00357 CString TCurrentLabel(LPCTSTR target)
00358 {
00359 CString result;
00360 static BYTE parms[] = VTS_BSTR ;
00361 InvokeHelper(0x92, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, target);
00362 return result;
00363 }
00364 void TPlay(LPCTSTR target)
00365 {
00366 static BYTE parms[] = VTS_BSTR ;
00367 InvokeHelper(0x93, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target);
00368 }
00369 void TStopPlay(LPCTSTR target)
00370 {
00371 static BYTE parms[] = VTS_BSTR ;
00372 InvokeHelper(0x94, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target);
00373 }
00374 void SetVariable(LPCTSTR name, LPCTSTR value)
00375 {
00376 static BYTE parms[] = VTS_BSTR VTS_BSTR ;
00377 InvokeHelper(0x97, DISPATCH_METHOD, VT_EMPTY, NULL, parms, name, value);
00378 }
00379 CString GetVariable(LPCTSTR name)
00380 {
00381 CString result;
00382 static BYTE parms[] = VTS_BSTR ;
00383 InvokeHelper(0x98, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, name);
00384 return result;
00385 }
00386 void TSetProperty(LPCTSTR target, long property, LPCTSTR value)
00387 {
00388 static BYTE parms[] = VTS_BSTR VTS_I4 VTS_BSTR ;
00389 InvokeHelper(0x99, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target, property, value);
00390 }
00391 CString TGetProperty(LPCTSTR target, long property)
00392 {
00393 CString result;
00394 static BYTE parms[] = VTS_BSTR VTS_I4 ;
00395 InvokeHelper(0x9a, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, target, property);
00396 return result;
00397 }
00398 void TCallFrame(LPCTSTR target, long FrameNum)
00399 {
00400 static BYTE parms[] = VTS_BSTR VTS_I4 ;
00401 InvokeHelper(0x9b, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target, FrameNum);
00402 }
00403 void TCallLabel(LPCTSTR target, LPCTSTR label)
00404 {
00405 static BYTE parms[] = VTS_BSTR VTS_BSTR ;
00406 InvokeHelper(0x9c, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target, label);
00407 }
00408 void TSetPropertyNum(LPCTSTR target, long property, double value)
00409 {
00410 static BYTE parms[] = VTS_BSTR VTS_I4 VTS_R8 ;
00411 InvokeHelper(0x9d, DISPATCH_METHOD, VT_EMPTY, NULL, parms, target, property, value);
00412 }
00413 double TGetPropertyNum(LPCTSTR target, long property)
00414 {
00415 double result;
00416 static BYTE parms[] = VTS_BSTR VTS_I4 ;
00417 InvokeHelper(0x9e, DISPATCH_METHOD, VT_R8, (void*)&result, parms, target, property);
00418 return result;
00419 }
00420 double TGetPropertyAsNumber(LPCTSTR target, long property)
00421 {
00422 double result;
00423 static BYTE parms[] = VTS_BSTR VTS_I4 ;
00424 InvokeHelper(0xac, DISPATCH_METHOD, VT_R8, (void*)&result, parms, target, property);
00425 return result;
00426 }
00427 CString get_SWRemote()
00428 {
00429 CString result;
00430 InvokeHelper(0x9f, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
00431 return result;
00432 }
00433 void put_SWRemote(LPCTSTR newValue)
00434 {
00435 static BYTE parms[] = VTS_BSTR ;
00436 InvokeHelper(0x9f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00437 }
00438 CString get_FlashVars()
00439 {
00440 CString result;
00441 InvokeHelper(0xaa, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
00442 return result;
00443 }
00444 void put_FlashVars(LPCTSTR newValue)
00445 {
00446 static BYTE parms[] = VTS_BSTR ;
00447 InvokeHelper(0xaa, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00448 }
00449 CString get_AllowScriptAccess()
00450 {
00451 CString result;
00452 InvokeHelper(0xab, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
00453 return result;
00454 }
00455 void put_AllowScriptAccess(LPCTSTR newValue)
00456 {
00457 static BYTE parms[] = VTS_BSTR ;
00458 InvokeHelper(0xab, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
00459 }
00460
00461
00462 };