PlayWnd.h
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:2k
源码类别:

VC书籍

开发平台:

Visual C++

  1. #if !defined(AFX_PLAYWND_H__B5AF2125_844C_11D2_8D53_0000E85214AE__INCLUDED_)
  2. #define AFX_PLAYWND_H__B5AF2125_844C_11D2_8D53_0000E85214AE__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // PlayWnd.h : header file
  7. //
  8. #include <streams.h>
  9. #include <stdio.h>
  10. #include "asyncio.h"
  11. #include "asyncrdr.h"
  12. class CMemStream;
  13. class CMemReader;
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CPlayWnd frame
  16. class CPlayWnd : public CFrameWnd
  17. {
  18. DECLARE_DYNCREATE(CPlayWnd)
  19. public:
  20. CPlayWnd();           // protected constructor used by dynamic creation
  21. virtual ~CPlayWnd();
  22. protected:
  23.    int nScreenX;
  24.    int nScreenY;
  25. // Attributes
  26. public:
  27. void Render ();
  28. // Operations
  29. public:
  30. //private:
  31. HRESULT hr;
  32.     CMediaType mt;
  33. CMemStream *m_pStream;
  34. CMemReader *m_rdr;
  35. RECT       m_rc;       
  36. IVideoWindow  *m_pivw;
  37. IFilterGraph  *m_pifg;
  38. IGraphBuilder *m_pigb;
  39. IMediaControl *m_pimc;
  40. void InitFilter ();
  41. // Overrides
  42. // ClassWizard generated virtual function overrides
  43. //{{AFX_VIRTUAL(CPlayWnd)
  44. protected:
  45. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  46. //}}AFX_VIRTUAL
  47. // Implementation
  48. protected:
  49. // Generated message map functions
  50. //{{AFX_MSG(CPlayWnd)
  51. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  52. afx_msg void OnDestroy();
  53. afx_msg void OnSize(UINT nType, int cx, int cy);
  54. //}}AFX_MSG
  55. DECLARE_MESSAGE_MAP()
  56. };
  57. /////////////////////////////////////////////////////////////////////////////
  58. //{{AFX_INSERT_LOCATION}}
  59. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  60. #endif // !defined(AFX_PLAYWND_H__B5AF2125_844C_11D2_8D53_0000E85214AE__INCLUDED_)