00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_DOWNLOADS_VIDEOPREVIEW_H__DDAE623A_07E2_462E_9B01_D74ADD37EE11__INCLUDED_) 00007 #define AFX_DOWNLOADS_VIDEOPREVIEW_H__DDAE623A_07E2_462E_9B01_D74ADD37EE11__INCLUDED_ 00008 00009 #include "VideoWindow.h" 00010 #include "DlgVidMan.h" 00011 #include "DlgVidSeek.h" 00012 #if _MSC_VER > 1000 00013 #pragma once 00014 #endif 00015 00016 #include "fsDownload.h" 00017 #include "shockwaveflash.h" 00018 00019 class CDownloads_VideoPreview : public CWnd 00020 { 00021 friend class CDownloadsWnd; 00022 00023 public: 00024 CDownloads_VideoPreview(); 00025 virtual ~CDownloads_VideoPreview(); 00026 00027 public: 00028 BOOL IsMuteAvail(); 00029 BOOL IsPaused(); 00030 BOOL IsPauseAvail(); 00031 BOOL IsPlaying(); 00032 void set_InFVDownloads(BOOL b); 00033 void Convert(); 00034 void ApplyLanguage(); 00035 void SaveState(); 00036 00037 void UpdateCommand (UINT nID, BOOL* pbEnabled, BOOL* pbChecked); 00038 00039 CString GetDuration(); 00040 00041 UINT64 Get_AvailFileSize(); 00042 00043 UINT64 Get_FileSize(); 00044 00045 CString Get_FileName(); 00046 00047 00048 void Set_Volume (long lVolume); 00049 fsPartMediaPlayer* Get_Player(); 00050 00051 void Play(); 00052 00053 vmsDownloadSmartPtr Get_ActiveDownload(); 00054 00055 void Pause(); 00056 00057 void Stop(); 00058 00059 CVideoWindow m_wndVideo; 00060 BOOL Create (CWnd* pWndParent); 00061 00062 void Set_ActiveDownload (vmsDownloadSmartPtr dld); 00063 00064 //{{AFX_VIRTUAL(CDownloads_VideoPreview) 00065 protected: 00066 virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam); 00067 //}}AFX_VIRTUAL 00068 00069 protected: 00070 BOOL m_bUsingVideo2; 00071 CShockwaveFlash m_wndVideo2; 00072 00073 BOOL OpenFile(); 00074 00075 void CloseFile(); 00076 DWORD m_dwDXVersion; 00077 00078 afx_msg LRESULT OnGraphMessage(WPARAM, LPARAM); 00079 00080 CDlgVidSeek m_vidseek; 00081 00082 CDlgVidMan m_vidman; 00083 HANDLE m_hFile; 00084 vmsDownloadSmartPtr m_pActiveDownload; 00085 00086 //{{AFX_MSG(CDownloads_VideoPreview) 00087 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00088 afx_msg void OnSize(UINT nType, int cx, int cy); 00089 afx_msg BOOL OnEraseBkgnd(CDC* pDC); 00090 //}}AFX_MSG 00091 DECLARE_MESSAGE_MAP() 00092 }; 00093 00094 //{{AFX_INSERT_LOCATION}//}} 00095 00096 #endif
1.5.6