wmp4playerView.h
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:3k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  1. // wmp4playerView.h : interface of the CWmp4playerView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_WMP4PLAYERVIEW_H__CD6DE0F0_92C8_4851_B12D_777B951E65DA__INCLUDED_)
  5. #define AFX_WMP4PLAYERVIEW_H__CD6DE0F0_92C8_4851_B12D_777B951E65DA__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CWmp4playerView : public CFormView
  10. {
  11. protected: // create from serialization only
  12. CWmp4playerView();
  13. DECLARE_DYNCREATE(CWmp4playerView)
  14. public:
  15. //{{AFX_DATA(CWmp4playerView)
  16. enum { IDD = IDD_WMP4PLAYER_FORM };
  17. CSliderCtrl m_volume_slider;
  18. CBitmapButton m_stop_button;
  19. CBitmapButton m_pause_button;
  20. CBitmapButton m_play_button;
  21. CSliderCtrl m_time_slider;
  22. CComboBox m_combobox;
  23. //}}AFX_DATA
  24. // Attributes
  25. public:
  26. CWmp4playerDoc* GetDocument();
  27. void OnCloseSession(void);
  28. // Operations
  29. public:
  30. // Overrides
  31. // ClassWizard generated virtual function overrides
  32. //{{AFX_VIRTUAL(CWmp4playerView)
  33. public:
  34. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  35. protected:
  36. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  37. virtual void OnInitialUpdate(); // called first time after construct
  38. //}}AFX_VIRTUAL
  39. afx_msg void OnHScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar );
  40. // Implementation
  41. public:
  42. virtual ~CWmp4playerView();
  43. #ifdef _DEBUG
  44. virtual void AssertValid() const;
  45. virtual void Dump(CDumpContext& dc) const;
  46. #endif
  47. protected:
  48. void OnUpdate( CView* pSender, LPARAM lHint, CObject* pHint );
  49. // Generated message map functions
  50. protected:
  51. //{{AFX_MSG(CWmp4playerView)
  52. afx_msg void OnBrowseButton();
  53. afx_msg void OnDropdownCombo1();
  54. afx_msg void OnDblclkCombo1();
  55. afx_msg void OnEnter();
  56. afx_msg void OnSetfocusCombo1();
  57. afx_msg void OnKillfocusCombo1();
  58. afx_msg void OnSelendokCombo1();
  59. afx_msg void OnPlayButton();
  60. afx_msg void OnPauseButton();
  61. afx_msg void OnStopButton();
  62. afx_msg void OnTimer(UINT nIDEvent);
  63. afx_msg void OnAudioMute();
  64. //}}AFX_MSG
  65. afx_msg LRESULT OnSdlKey(WPARAM, LPARAM);
  66. DECLARE_MESSAGE_MAP()
  67. private:
  68. int m_timer_slider_selected;
  69. int m_nTimer;
  70. };
  71. #ifndef _DEBUG  // debug version in wmp4playerView.cpp
  72. inline CWmp4playerDoc* CWmp4playerView::GetDocument()
  73.    { return (CWmp4playerDoc*)m_pDocument; }
  74. #endif
  75. /////////////////////////////////////////////////////////////////////////////
  76. //{{AFX_INSERT_LOCATION}}
  77. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  78. #endif // !defined(AFX_WMP4PLAYERVIEW_H__CD6DE0F0_92C8_4851_B12D_777B951E65DA__INCLUDED_)