PlayerDlg.h
资源名称:Player.rar [点击查看]
上传用户:ziniusheji
上传日期:2022-08-10
资源大小:11534k
文件大小:2k
源码类别:
多媒体编程
开发平台:
C++ Builder
- // PlayerDlg.h : 头文件
- //
- #pragma once
- #include "activemovie3.h"
- // CPlayerDlg 对话框
- class CPlayerDlg : public CDialog
- {
- // 构造
- public:
- void MoveMovieWindow();
- CPlayerDlg(CWnd* pParent = NULL); // 标准构造函数
- CBrush m_brush;
- CBrush* m_pEditBkBrush;
- // 对话框数据
- enum { IDD = IDD_PLAYER_DIALOG };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
- // 实现
- protected:
- HICON m_hIcon;
- // 生成的消息映射函数
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- DECLARE_MESSAGE_MAP()
- CActiveMovie3 m_amovie;
- //afx_msg void OnBnClickedOpen();
- //afx_msg void OnBnClickedStart();
- afx_msg void OnPlaystop();
- //afx_msg void OnStateChangeAmovie(long oldState, long newState);
- //afx_msg void OnReadyStateChangeAmovie(long ReadyState);
- //afx_msg void OnDisplayModeChangeAmovie();
- afx_msg void OnOpen();
- afx_msg void OnPlay();
- afx_msg void OnPause();
- afx_msg void OnClose();
- afx_msg void OnExit();
- afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
- afx_msg void OnDestroy();
- afx_msg void OnVedioFull();
- afx_msg void OnVedio1();
- afx_msg void OnCctv1();
- //afx_msg void OnErrorAmovie(short SCode, LPCTSTR Description, LPCTSTR Source, BOOL FAR* CancelDisplay);
- //afx_msg void OnOpenCompleteAmovie();
- DECLARE_EVENTSINK_MAP()
- public:
- void StateChangeActivemoviecontrol1(long oldState, long newState);
- void ReadyStateChangeActivemoviecontrol1(long ReadyState);
- void DisplayModeChangeActivemoviecontrol1();
- void ErrorActivemoviecontrol1(short SCode, LPCTSTR Description, LPCTSTR Source, BOOL* CancelDisplay);
- void OpenCompleteActivemoviecontrol1();
- //IntPtr GetDlgItem(IntPtr hDlg, int nIDDlgItem)
- };