RemoteFilePlay.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. #if !defined(AFX_REMOTEFILEPLAY_H__6C2D4D5D_85CC_4C46_A223_70B5E528F401__INCLUDED_)
  2. #define AFX_REMOTEFILEPLAY_H__6C2D4D5D_85CC_4C46_A223_70B5E528F401__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // RemoteFilePlay.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CRemoteFilePlay dialog
  10. class CRemoteFilePlay : public CDialog
  11. {
  12. // Construction
  13. public:
  14. CRemoteFilePlay(CWnd* pParent = NULL); // standard constructor
  15. LONG m_lServerID;
  16. LONG m_lServerType;
  17. BOOL m_bDown;
  18. BOOL m_bSearchDown;
  19. int m_nPlayHandle;
  20. BOOL m_bSound;
  21. BOOL m_bPause;
  22. BOOL bGetMaxTime;
  23. BOOL m_bFullScreen;
  24. HWND m_hPlayWnd;
  25. HWND m_hPareTabWnd;
  26. HWND m_hPareDlgWnd;
  27. CRect m_rcScreen;
  28. CRect m_rcWnd;
  29. CRect m_rcPareDlg;
  30. CRect m_rcPareTab;
  31. CRect m_rcParent;
  32. LONG m_lFileHandle;
  33. HANDLE m_hFileThread;
  34. int m_iFileNum;
  35. int m_iChannel;
  36. int iSelServer;
  37. int iFileType;
  38. LONG lFileHandle;
  39. DWORD m_nFileTime;
  40. DWORD m_nTotalFrames;
  41. int m_nTotalSecond;
  42. int m_nTotalMinute;
  43. int m_nTotalHour;
  44. BOOL m_bFindFile;
  45. BOOL m_bFileDownload;
  46. LONG m_lStartChan;
  47. char filename[200];
  48. char filenamedownload[256];
  49. BOOL m_bSaveFile;
  50. BOOL m_bSetFrame;
  51. // int m_nPlayHandle1;
  52. void SetParentWnd(HWND *hhWnd, int iParentNum);
  53. void F_Exit();
  54. void F_InitUI();
  55. void F_SetStopState();
  56. void F_Play();
  57. void F_SetPlayState();
  58. void F_SetPauseState();
  59. void F_StopPlay();
  60. void F_ShowNormal();
  61. void F_EnableFlashWnd(BOOL bEnable);
  62. void F_ShowFullScreen();
  63. BOOL IsInWnd(CPoint point);
  64. // Dialog Data
  65. //{{AFX_DATA(CRemoteFilePlay)
  66. enum { IDD = IDD_SUBDLG_REMOTEFILE };
  67. CListCtrl m_Filelist;
  68. CComboBox m_ChannelCtrl;
  69. CSliderCtrl m_ctlProgress;
  70. CStatic m_PlayWnd;
  71. CProgressCtrl m_downProgress;
  72. CComboBox m_ServerCtrl;
  73. CComboBox m_FileType;
  74. CSliderCtrl m_ctlVolume;
  75. CTime m_ctDateStart;
  76. CTime m_ctDateStop;
  77. CTime m_ctTimeStart;
  78. CTime m_ctTimeStop;
  79. CString m_sCardNum;
  80. CString m_staticdownload;
  81. BOOL m_bCard;
  82. //}}AFX_DATA
  83. // Overrides
  84. // ClassWizard generated virtual function overrides
  85. //{{AFX_VIRTUAL(CRemoteFilePlay)
  86. protected:
  87. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  88. //}}AFX_VIRTUAL
  89. protected:
  90. HICON m_hSoundStartIcon;
  91. HICON m_hSoundStopIcon;
  92. HICON m_hPlayEnableIcon;
  93. HICON m_hPlayDisableIcon;
  94. HICON m_hPauseEnableIcon;
  95. HICON m_hPauseDisableIcon;
  96. HICON m_hStopEnableIcon;
  97. HICON m_hStopDisableIcon;
  98. HICON m_hGotoHeadDisableIcon;
  99. HICON m_hGotoHeadEnableIcon;
  100. HICON m_hGotoTailEnableIcon;
  101. HICON m_hGotoTailDisableIcon;
  102. HICON m_hFastDisableIcon;
  103. HICON m_hFastEnableIcon;
  104. HICON m_hSlowDisableIcon;
  105. HICON m_hSlowEnableIcon;
  106. HICON m_hStepEnableIcon;
  107. HICON m_hStepDisableIcon;
  108. HICON m_hStepBackEnableIcon;
  109. HICON m_hStepBackDisableIcon;
  110. HICON m_hCaptureIcon;
  111. // Implementation
  112. protected:
  113. // Generated message map functions
  114. //{{AFX_MSG(CRemoteFilePlay)
  115. virtual BOOL OnInitDialog();
  116. afx_msg void OnDblclkRemotefilrlist(NMHDR* pNMHDR, LRESULT* pResult);
  117. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  118. afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  119. afx_msg void OnReleasedcaptureProgressSlider(NMHDR* pNMHDR, LRESULT* pResult);
  120. afx_msg void OnTimer(UINT nIDEvent);
  121. afx_msg void OnSearchlist();
  122. afx_msg void OnDownload();
  123. afx_msg void OnPlayFile();
  124. afx_msg void OnStop();
  125. afx_msg void OnSlow();
  126. afx_msg void OnFast();
  127. afx_msg void OnCappic();
  128. afx_msg void OnStep();
  129. afx_msg void OnSound();
  130. afx_msg void OnDestroy();
  131. afx_msg void OnSelchangeComboserver();
  132. virtual void OnCancel();
  133. afx_msg void OnButtonsave();
  134. afx_msg void OnButtonstopsave();
  135. afx_msg void OnGotostart();
  136. //}}AFX_MSG
  137. DECLARE_MESSAGE_MAP()
  138. };
  139. //{{AFX_INSERT_LOCATION}}
  140. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  141. #endif // !defined(AFX_REMOTEFILEPLAY_H__6C2D4D5D_85CC_4C46_A223_70B5E528F401__INCLUDED_)