ReadSWF_2Dlg.h
上传用户:qzjinhui
上传日期:2020-10-10
资源大小:5260k
文件大小:2k
源码类别:

语音压缩

开发平台:

Visual C++

  1. // ReadSWF_2Dlg.h : header file
  2. //
  3. #include "Sound.h"
  4. #include "sndmix.h"
  5. #if !defined(AFX_READSWF_2DLG_H__DDA02D59_0732_4D80_BB0D_2CC461B2FC1E__INCLUDED_)
  6. #define AFX_READSWF_2DLG_H__DDA02D59_0732_4D80_BB0D_2CC461B2FC1E__INCLUDED_
  7. #if _MSC_VER > 1000
  8. #pragma once
  9. #endif // _MSC_VER > 1000
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CReadSWF_2Dlg dialog
  12. typedef struct Rect
  13. {
  14. int Xmin;
  15. int Ymin;
  16. int Xmax;
  17. int Ymax;
  18. }RECT_1;
  19. class CReadSWF_2Dlg : public CDialog
  20. {
  21. // Construction
  22. public:
  23. CReadSWF_2Dlg(CWnd* pParent = NULL); // standard constructor
  24. CString m_SWFFileName;
  25. void SWF_Decoder(FILE *file);
  26. DWORD Get_Bit_From_Cache(int n);
  27. void Read_From_Cache(DWORD readlen,BYTE * buff);
  28. void Get_RECT_From_Cache(RECT_1 * pRect);
  29. void Define_Sound();
  30. void Start_Sound();
  31. void GetSoundInfo(CSoundChannel* c);
  32. CSound sound;
  33. // Dialog Data
  34. //{{AFX_DATA(CReadSWF_2Dlg)
  35. enum { IDD = IDD_READSWF_2_DIALOG };
  36. CString m_SWFFile;
  37. //}}AFX_DATA
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CReadSWF_2Dlg)
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. HICON m_hIcon;
  46. // Generated message map functions
  47. //{{AFX_MSG(CReadSWF_2Dlg)
  48. virtual BOOL OnInitDialog();
  49. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  50. afx_msg void OnPaint();
  51. afx_msg HCURSOR OnQueryDragIcon();
  52. afx_msg void OnPlay();
  53. afx_msg void OnOpenFile();
  54. //}}AFX_MSG
  55. DECLARE_MESSAGE_MAP()
  56. };
  57. //{{AFX_INSERT_LOCATION}}
  58. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  59. #endif // !defined(AFX_READSWF_2DLG_H__DDA02D59_0732_4D80_BB0D_2CC461B2FC1E__INCLUDED_)