AviPlayerWnd.h
上传用户:sesekoo
上传日期:2020-07-18
资源大小:21543k
文件大小:2k
源码类别:

界面编程

开发平台:

Visual C++

  1. #if !defined(AFX_AVIPLAYERWND_H__8F4BEFD7_66AD_45A5_A392_408FB18F7A05__INCLUDED_)
  2. #define AFX_AVIPLAYERWND_H__8F4BEFD7_66AD_45A5_A392_408FB18F7A05__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // AviPlayerWnd.h : header file
  7. //
  8. class CAviPlayer;
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CAviPlayerWnd window
  11. class CAviPlayerWnd : public CWnd
  12. {
  13. // Construction
  14. public:
  15. CAviPlayerWnd( CAviPlayer *pAviPlayer = NULL);
  16. DECLARE_DYNAMIC( CAviPlayerWnd );
  17. // Attributes
  18. public:
  19. // Operations
  20. public:
  21. bool Create(
  22. CWnd * pWndParent,
  23. UINT nDlgCtrlID = 0,
  24. CRect rc = CRect( 0,0,0,0 ),
  25. DWORD dwStyle = WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN,
  26. DWORD dwStyleEx = 0L
  27. );
  28. DWORD m_nTimerStart;
  29. UINT SetTimer (UINT nIDEvent, UINT nElapse)
  30. {
  31. m_nTimerStart = GetTickCount();
  32. return UINT( CWnd::SetTimer( nIDEvent, nElapse, NULL ) );
  33. }
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CAviPlayerWnd)
  37. //}}AFX_VIRTUAL
  38. // Implementation
  39. public:
  40. virtual ~CAviPlayerWnd();
  41. // Generated message map functions
  42. protected:
  43. //{{AFX_MSG(CAviPlayerWnd)
  44. afx_msg void OnTimer(__EXT_MFC_UINT_PTR nIDEvent);
  45. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  46. afx_msg void OnPaint();
  47. //}}AFX_MSG
  48. DECLARE_MESSAGE_MAP()
  49. private:
  50. CAviPlayer* m_pAviPlayer;
  51. };
  52. /////////////////////////////////////////////////////////////////////////////
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  55. #endif // !defined(AFX_AVIPLAYERWND_H__8F4BEFD7_66AD_45A5_A392_408FB18F7A05__INCLUDED_)