VgaPlayerDlg.h
资源名称:VGAPlayer.rar [点击查看]
上传用户:dreamzjm
上传日期:2014-06-08
资源大小:388k
文件大小:2k
源码类别:
多媒体编程
开发平台:
Visual C++
- // VgaPlayerDlg.h : header file
- //
- //{{AFX_INCLUDES()
- #include "vgaplayer1.h"
- #include "wmpplayer4.h"
- //}}AFX_INCLUDES
- #include "GoodSliderCtrl.h"
- #include <string>
- using namespace std;
- #if !defined(AFX_VGAPLAYERDLG_H__0A257784_86AC_472B_BE3C_B33DFF5D8709__INCLUDED_)
- #define AFX_VGAPLAYERDLG_H__0A257784_86AC_472B_BE3C_B33DFF5D8709__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CVgaPlayerDlg dialog
- class CVgaPlayerDlg : public CDialog
- {
- // Construction
- public:
- //bool isCmd;
- string Sencond2DateTime(time_t t);
- void Play(CString strFile);
- void ShowInfo();
- void PlayFiles();
- CVgaPlayerDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CVgaPlayerDlg)
- enum { IDD = IDD_VGAPLAYER_DIALOG };
- CGoodSliderCtrl m_Progress;
- CButton m_btn_pause;
- CSliderCtrl m_SliderVolume;
- CButton m_btn_play;
- CVGAPlayer m_VGA;
- CWMPPlayer4 m_WMP;
- CString m_Length;
- CString m_CurrentTime;
- CString m_VLength;
- CString m_VTitle;
- CString m_VDescription;
- CString m_CmdLine;
- CString m_VArtist;
- CString m_VCopyRight;
- //CString m_VStatus;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CVgaPlayerDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- CString m_VGAPath;
- CString m_ASFPath;
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CVgaPlayerDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnBtnOpen();
- afx_msg void OnBtnPlay();
- afx_msg void OnBtnPause();
- afx_msg void OnCancelMode();
- afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnClose();
- afx_msg void OnBtnStop();
- afx_msg void OnDropFiles(HDROP hDropInfo);
- afx_msg void OnMenuOpen();
- afx_msg void OnMenuAbout();
- afx_msg void OnMenExit();
- afx_msg void OnPlayStateChangeWmp(long NewState);
- DECLARE_EVENTSINK_MAP()
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_VGAPLAYERDLG_H__0A257784_86AC_472B_BE3C_B33DFF5D8709__INCLUDED_)
English
