#ifndef T2DLL_T2DLGITEMMOVIE_H #define T2DLL_T2DLGITEMMOVIE_H #include "../common.h" #include "T2DlgItem.h" // DirectShow #include #include #include #include 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