LocalFilePlay.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. #if !defined(AFX_LOCALFILEPLAY_H__37FBE58A_A509_4EFA_8FF1_C5482C6B890C__INCLUDED_)
  2. #define AFX_LOCALFILEPLAY_H__37FBE58A_A509_4EFA_8FF1_C5482C6B890C__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // LocalFilePlay.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CLocalFilePlay dialog
  10. class CLocalFilePlay : public CDialog
  11. {
  12. // Construction
  13. public:
  14. CLocalFilePlay(CWnd* pParent = NULL); // standard constructor
  15. HWND m_hPareTabWnd;
  16. HWND m_hPareDlgWnd;
  17. BOOL m_bPlay;
  18. BOOL m_bPause;
  19. BOOL m_bSound;
  20. int m_iTotalSeconds;
  21. BOOL m_bStep;
  22. BOOL m_bFileRefCreated;
  23. HWND m_hPlayWnd;
  24. BOOL m_bFullScreen;
  25. CRect m_rcScreen;
  26. CRect m_rcWnd;
  27. CRect m_rcPareDlg;
  28. CRect m_rcPareTab;
  29. CRect m_rcParent;
  30. int m_iTSum;
  31. static CString m_csIP;
  32. static int iSelChannel;
  33. LONG m_lStartChan;
  34. int m_iChannelnumber;
  35. void F_InitUI();
  36. void SetParentWnd(HWND *hhWnd, int iParentNum);
  37. void F_Stop();
  38. BOOL F_CheckDate(CTime tFrom, CTime tTo);
  39. int F_ShowlocalFile(CString csIP,int iFileType,int iChanNum, CTime tFrom, CTime tTo);
  40. int F_ShowDownloadFile(CString csIP,int iChanNum, CTime tFrom, CTime tTo);
  41. void F_SetStopState();
  42. void F_UpdateStepBackUI(BOOL bEnable);
  43. void F_SetPlayState();
  44. void F_Pause();
  45. void F_Play();
  46. void F_SetPauseState();
  47. void F_Sound(BOOL bSound);
  48. void F_SetPlaySoundState();
  49. void F_SetStopSoundState();
  50. void F_ShowStatus();
  51. BOOL IsInWnd(CPoint point);
  52. void F_ShowFullScreen();
  53. void F_ShowNormal();
  54. void F_EnableFlashWnd(BOOL bEnable);
  55. // Dialog Data
  56. //{{AFX_DATA(CLocalFilePlay)
  57. enum { IDD = IDD_SUBDLG_LOCALFILE };
  58. CListCtrl m_locFileList;
  59. CSliderCtrl m_ctlProgress;
  60. CSliderCtrl m_ctlVolume;
  61. CComboBox m_ServerCtrl;
  62. CComboBox m_ChannelCtrl;
  63. CComboBox m_FileTypeCtrl;
  64. CTime m_ctTimeStart;
  65. CTime m_ctTimeStop;
  66. int m_iChannelSel;
  67. CTime m_ctDateStart;
  68. CTime m_ctDateStop;
  69. //}}AFX_DATA
  70. // Overrides
  71. // ClassWizard generated virtual function overrides
  72. //{{AFX_VIRTUAL(CLocalFilePlay)
  73. protected:
  74. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  75. //}}AFX_VIRTUAL
  76. protected:
  77. HICON m_hSoundStartIcon;
  78. HICON m_hSoundStopIcon;
  79. HICON m_hPlayEnableIcon;
  80. HICON m_hPlayDisableIcon;
  81. HICON m_hPauseEnableIcon;
  82. HICON m_hPauseDisableIcon;
  83. HICON m_hStopEnableIcon;
  84. HICON m_hStopDisableIcon;
  85. HICON m_hGotoHeadDisableIcon;
  86. HICON m_hGotoHeadEnableIcon;
  87. HICON m_hGotoTailEnableIcon;
  88. HICON m_hGotoTailDisableIcon;
  89. HICON m_hFastDisableIcon;
  90. HICON m_hFastEnableIcon;
  91. HICON m_hSlowDisableIcon;
  92. HICON m_hSlowEnableIcon;
  93. HICON m_hStepEnableIcon;
  94. HICON m_hStepDisableIcon;
  95. HICON m_hStepBackEnableIcon;
  96. HICON m_hStepBackDisableIcon;
  97. HICON m_hCaptureIcon;
  98. // Implementation
  99. protected:
  100. // Generated message map functions
  101. //{{AFX_MSG(CLocalFilePlay)
  102. virtual BOOL OnInitDialog();
  103. afx_msg void OnSearch();
  104. afx_msg void OnDelete();
  105. afx_msg void OnDeleteall();
  106. afx_msg void OnPlayFile();
  107. afx_msg void OnStop();
  108. afx_msg void OnSlow();
  109. afx_msg void OnFast();
  110. afx_msg void OnCappic();
  111. afx_msg void OnStepback();
  112. afx_msg void OnStep();
  113. afx_msg void OnSound();
  114. afx_msg void OnDestroy();
  115. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  116. afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  117. afx_msg void OnPaint();
  118. afx_msg void OnTimer(UINT nIDEvent);
  119. virtual void OnCancel();
  120. afx_msg void OnSelchangeComboserver();
  121. afx_msg void OnSelchangeCombofiletype();
  122. //}}AFX_MSG
  123. DECLARE_MESSAGE_MAP()
  124. };
  125. //{{AFX_INSERT_LOCATION}}
  126. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  127. #endif // !defined(AFX_LOCALFILEPLAY_H__37FBE58A_A509_4EFA_8FF1_C5482C6B890C__INCLUDED_)