diff options
Diffstat (limited to 'src/T2DLL/T2DlgItemMovie.h')
-rw-r--r-- | src/T2DLL/T2DlgItemMovie.h | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/src/T2DLL/T2DlgItemMovie.h b/src/T2DLL/T2DlgItemMovie.h index 48b8dd7..3d2c2dc 100644 --- a/src/T2DLL/T2DlgItemMovie.h +++ b/src/T2DLL/T2DlgItemMovie.h @@ -1,21 +1,33 @@ #pragma once #include "common.h" +#include "T2DlgItem.h" +// DirectShow +#include <strmif.h> +#include <control.h> +#include <uuids.h> +#include <evcode.h> -class T2DlgItemMovie { +class AFX_EXT_CLASS T2DlgItemMovie : public T2DlgItem { public: - T2DlgItemMovie(T2TowerDoc*, T2ImageObj*, CPalette*); + 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(CREATESTRUCTA*); - virtual int OnT2DlgItemEraseBkgnd(CDC*); -public: - void SetStillScreenID(const char*, int); - void SetQTMovieName(CString&); -protected: - void PlayMovie(const char*); - void CloseMovie(); -public: - virtual long WindowProc(unsigned int, unsigned int, long); -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; }; |