summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2DlgItemMovie.h
blob: cd8002747008ee535bee61fb85f35786b767ec23 (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
#pragma once
#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;
};