MULTIM~2.H
上传用户:lianyisd
上传日期:2019-11-03
资源大小:5188k
文件大小:2k
- // MultimediaDlg.h : header file
- //
- //{{AFX_INCLUDES()
- #include "activemovie3.h"
- //}}AFX_INCLUDES
- #if !defined(AFX_MULTIMEDIADLG_H__44249DE2_62AE_40DC_BE6E_7F82CA144571__INCLUDED_)
- #define AFX_MULTIMEDIADLG_H__44249DE2_62AE_40DC_BE6E_7F82CA144571__INCLUDED_
- #include "Media.h" // Added by ClassView
- #include "HistogramCtrl.h" // Added by ClassView
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CMultimediaDlg dialog
- class CMultimediaDlg : public CDialog
- {
- // Construction
- public:
- void SetVolume(DWORD dwValue);
- CBitmap m_bmp[10];
- CMenu* pSubMenu;
- CMenu* pMainMenu;
- CString pFileExt;
- CString pFileName;
- CMedia m_media;
- HBITMAP m_hBmp;
- CMultimediaDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CMultimediaDlg)
- enum { IDD = IDD_MULTIMEDIA_DIALOG };
- CSliderCtrl m_ctrlVolume;
- CButton m_exitButton;
- CButton m_pauseButton;
- CButton m_openButton;
- CButton m_stopButton;
- CButton m_playButton;
- CActiveMovie3 m_activeMovie;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMultimediaDlg)
- public:
- virtual BOOL DestroyWindow();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CMultimediaDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnPlay();
- afx_msg void OnExit();
- afx_msg void OnOpen();
- afx_msg void OnPause();
- afx_msg void OnStop();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnMenuitemRecord();
- afx_msg void OnMenuitemSave();
- afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- afx_msg void OnMenuitemReplay();
- afx_msg void OnMenuitemOpencd();
- afx_msg void OnMenuitemClosecd();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- IVolume* pMasterVolume;
- int count;
- bool fileOpen;
- CHistogramCtrl m_HistogramCtrl;
- CStatusBarCtrl m_wndStatusBar;
- };
- void CALLBACK MasterVolumeChanged( DWORD dwCurrentVolume, DWORD dwUserValue );
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MULTIMEDIADLG_H__44249DE2_62AE_40DC_BE6E_7F82CA144571__INCLUDED_)