Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CShockwaveFlash.h « mpc-hc « src - github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ed89145c2301c01cd5e2b95d3c972cc4db67fbad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
/*
 * (C) 2003-2006 Gabest
 * (C) 2006-2013 see Authors.txt
 *
 * This file is part of MPC-HC.
 *
 * MPC-HC is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * MPC-HC is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#pragma once

/////////////////////////////////////////////////////////////////////////////
// CShockwaveFlash

class CShockwaveFlash : public CWnd
{
protected:
    DECLARE_DYNCREATE(CShockwaveFlash)
public:
    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 = nullptr) {
        return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID);
    }

    BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd,
                UINT nID, CFile* pPersist = nullptr, BOOL bStorage = FALSE,
                BSTR bstrLicKey = nullptr) {
        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, nullptr);
        return result;
    }
    long get_TotalFrames() {
        long result;
        InvokeHelper(0x7c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
        return result;
    }
    BOOL get_Playing() {
        BOOL result;
        InvokeHelper(0x7d, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
        return result;
    }
    void put_Playing(BOOL newValue) {
        static BYTE parms[] = VTS_BOOL;
        InvokeHelper(0x7d, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    long get_Quality() {
        long result;
        InvokeHelper(0x69, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
        return result;
    }
    void put_Quality(long newValue) {
        static BYTE parms[] = VTS_I4;
        InvokeHelper(0x69, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    long get_ScaleMode() {
        long result;
        InvokeHelper(0x78, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
        return result;
    }
    void put_ScaleMode(long newValue) {
        static BYTE parms[] = VTS_I4;
        InvokeHelper(0x78, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    long get_AlignMode() {
        long result;
        InvokeHelper(0x79, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
        return result;
    }
    void put_AlignMode(long newValue) {
        static BYTE parms[] = VTS_I4;
        InvokeHelper(0x79, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    long get_BackgroundColor() {
        long result;
        InvokeHelper(0x7b, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
        return result;
    }
    void put_BackgroundColor(long newValue) {
        static BYTE parms[] = VTS_I4;
        InvokeHelper(0x7b, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    BOOL get_Loop() {
        BOOL result;
        InvokeHelper(0x6a, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
        return result;
    }
    void put_Loop(BOOL newValue) {
        static BYTE parms[] = VTS_BOOL;
        InvokeHelper(0x6a, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    CString get_Movie() {
        CString result;
        InvokeHelper(0x66, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, nullptr);
        return result;
    }
    void put_Movie(LPCTSTR newValue) {
        static BYTE parms[] = VTS_BSTR;
        InvokeHelper(0x66, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    long get_FrameNum() {
        long result;
        InvokeHelper(0x6b, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, nullptr);
        return result;
    }
    void put_FrameNum(long newValue) {
        static BYTE parms[] = VTS_I4;
        InvokeHelper(0x6b, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, 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, nullptr, parms, left, top, right, bottom);
    }
    void Zoom(long factor) {
        static BYTE parms[] = VTS_I4;
        InvokeHelper(0x76, DISPATCH_METHOD, VT_EMPTY, nullptr, 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, nullptr, parms, x, y, mode);
    }
    void Play() {
        InvokeHelper(0x70, DISPATCH_METHOD, VT_EMPTY, nullptr, nullptr);
    }
    void Stop() {
        InvokeHelper(0x71, DISPATCH_METHOD, VT_EMPTY, nullptr, nullptr);
    }
    void Back() {
        InvokeHelper(0x72, DISPATCH_METHOD, VT_EMPTY, nullptr, nullptr);
    }
    void Forward() {
        InvokeHelper(0x73, DISPATCH_METHOD, VT_EMPTY, nullptr, nullptr);
    }
    void Rewind() {
        InvokeHelper(0x74, DISPATCH_METHOD, VT_EMPTY, nullptr, nullptr);
    }
    void StopPlay() {
        InvokeHelper(0x7e, DISPATCH_METHOD, VT_EMPTY, nullptr, nullptr);
    }
    void GotoFrame(long FrameNum) {
        static BYTE parms[] = VTS_I4;
        InvokeHelper(0x7f, DISPATCH_METHOD, VT_EMPTY, nullptr, parms, FrameNum);
    }
    long CurrentFrame() {
        long result;
        InvokeHelper(0x80, DISPATCH_METHOD, VT_I4, (void*)&result, nullptr);
        return result;
    }
    BOOL IsPlaying() {
        BOOL result;
        InvokeHelper(0x81, DISPATCH_METHOD, VT_BOOL, (void*)&result, nullptr);
        return result;
    }
    long PercentLoaded() {
        long result;
        InvokeHelper(0x82, DISPATCH_METHOD, VT_I4, (void*)&result, nullptr);
        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, nullptr);
        return result;
    }
    CString get_WMode() {
        CString result;
        InvokeHelper(0x85, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, nullptr);
        return result;
    }
    void put_WMode(LPCTSTR newValue) {
        static BYTE parms[] = VTS_BSTR;
        InvokeHelper(0x85, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    CString get_SAlign() {
        CString result;
        InvokeHelper(0x86, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, nullptr);
        return result;
    }
    void put_SAlign(LPCTSTR newValue) {
        static BYTE parms[] = VTS_BSTR;
        InvokeHelper(0x86, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    BOOL get_Menu() {
        BOOL result;
        InvokeHelper(0x87, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
        return result;
    }
    void put_Menu(BOOL newValue) {
        static BYTE parms[] = VTS_BOOL;
        InvokeHelper(0x87, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    CString get_Base() {
        CString result;
        InvokeHelper(0x88, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, nullptr);
        return result;
    }
    void put_Base(LPCTSTR newValue) {
        static BYTE parms[] = VTS_BSTR;
        InvokeHelper(0x88, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    CString get_Scale() {
        CString result;
        InvokeHelper(0x89, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, nullptr);
        return result;
    }
    void put_Scale(LPCTSTR newValue) {
        static BYTE parms[] = VTS_BSTR;
        InvokeHelper(0x89, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    BOOL get_DeviceFont() {
        BOOL result;
        InvokeHelper(0x8a, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
        return result;
    }
    void put_DeviceFont(BOOL newValue) {
        static BYTE parms[] = VTS_BOOL;
        InvokeHelper(0x8a, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    BOOL get_EmbedMovie() {
        BOOL result;
        InvokeHelper(0x8b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, nullptr);
        return result;
    }
    void put_EmbedMovie(BOOL newValue) {
        static BYTE parms[] = VTS_BOOL;
        InvokeHelper(0x8b, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    CString get_BGColor() {
        CString result;
        InvokeHelper(0x8c, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, nullptr);
        return result;
    }
    void put_BGColor(LPCTSTR newValue) {
        static BYTE parms[] = VTS_BSTR;
        InvokeHelper(0x8c, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    CString get_Quality2() {
        CString result;
        InvokeHelper(0x8d, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, nullptr);
        return result;
    }
    void put_Quality2(LPCTSTR newValue) {
        static BYTE parms[] = VTS_BSTR;
        InvokeHelper(0x8d, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    void LoadMovie(long layer, LPCTSTR url) {
        static BYTE parms[] = VTS_I4 VTS_BSTR;
        InvokeHelper(0x8e, DISPATCH_METHOD, VT_EMPTY, nullptr, parms, layer, url);
    }
    void TGotoFrame(LPCTSTR target, long FrameNum) {
        static BYTE parms[] = VTS_BSTR VTS_I4;
        InvokeHelper(0x8f, DISPATCH_METHOD, VT_EMPTY, nullptr, parms, target, FrameNum);
    }
    void TGotoLabel(LPCTSTR target, LPCTSTR label) {
        static BYTE parms[] = VTS_BSTR VTS_BSTR;
        InvokeHelper(0x90, DISPATCH_METHOD, VT_EMPTY, nullptr, 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, nullptr, parms, target);
    }
    void TStopPlay(LPCTSTR target) {
        static BYTE parms[] = VTS_BSTR;
        InvokeHelper(0x94, DISPATCH_METHOD, VT_EMPTY, nullptr, parms, target);
    }
    void SetVariable(LPCTSTR name, LPCTSTR value) {
        static BYTE parms[] = VTS_BSTR VTS_BSTR;
        InvokeHelper(0x97, DISPATCH_METHOD, VT_EMPTY, nullptr, 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, nullptr, 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, nullptr, parms, target, FrameNum);
    }
    void TCallLabel(LPCTSTR target, LPCTSTR label) {
        static BYTE parms[] = VTS_BSTR VTS_BSTR;
        InvokeHelper(0x9c, DISPATCH_METHOD, VT_EMPTY, nullptr, 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, nullptr, 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, nullptr);
        return result;
    }
    void put_SWRemote(LPCTSTR newValue) {
        static BYTE parms[] = VTS_BSTR;
        InvokeHelper(0x9f, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    CString get_FlashVars() {
        CString result;
        InvokeHelper(0xaa, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, nullptr);
        return result;
    }
    void put_FlashVars(LPCTSTR newValue) {
        static BYTE parms[] = VTS_BSTR;
        InvokeHelper(0xaa, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }
    CString get_AllowScriptAccess() {
        CString result;
        InvokeHelper(0xab, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, nullptr);
        return result;
    }
    void put_AllowScriptAccess(LPCTSTR newValue) {
        static BYTE parms[] = VTS_BSTR;
        InvokeHelper(0xab, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
    }

};