summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2DlgItemMovie.h
blob: af8b8509b4dbe06fd1a17b6238f0daa98d047c84 (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
#ifndef T2DLL_T2DLGITEMMOVIE_H
#define T2DLL_T2DLGITEMMOVIE_H
#include "../common.h"
#include "T2DlgItem.h"
// DirectShow
#include <strmif.h>
#include <control.h>
#include <uuids.h>
#include <evcode.h>

class AFX_CLASS_EXPORT T2DlgItemMovie : public T2DlgItem {
public:
	T2DlgItemMovie(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette);
	virtual ~T2DlgItemMovie();
    virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	void SetStillScreenID(const char* inName, int inResID);
	void SetQTMovieName(CString& inName);
protected:
    virtual int OnT2DlgItemCreate(CREATESTRUCT* cs);
    virtual BOOL OnT2DlgItemEraseBkgnd(CDC* pDC);
    void PlayMovie(const char* inName);
    void CloseMovie();
	virtual void OnT2Close();

    T2BitImage *mImage;
    T2ImageObj *mImageObj;
    BOOL mPlaying;
    IUnknown *mUnusedInterface;
    IGraphBuilder *mGraph;
    IMediaControl *mMediaControl;
    IMediaEventEx *mMediaEvent;
    IVideoWindow *mVideoWindow;
    IMediaPosition *mMediaPosition;
};
#endif