home *** CD-ROM | disk | FTP | other *** search
/ Game Audio Programming / GameAudioProgramming.iso / Game_Audio / AudioTest / Segment.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-07-15  |  2.3 KB  |  85 lines

  1. /***********************************************************\
  2. Copyright (C) James Boer, 2002. 
  3. All rights reserved worldwide.
  4.  
  5. This software is provided "as is" without express or implied
  6. warranties. You may freely copy and compile this source into
  7. applications you distribute provided that the copyright text
  8. below is included in the resulting source code, for example:
  9. "Portions Copyright (C) James Boer, 2002"
  10. \***********************************************************/
  11. #if !defined(AFX_SEGMENT_H__75DC20FA_817D_42D4_8115_9ECBFBE661C6__INCLUDED_)
  12. #define AFX_SEGMENT_H__75DC20FA_817D_42D4_8115_9ECBFBE661C6__INCLUDED_
  13.  
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17. // Segment.h : header file
  18. //
  19.  
  20. class CAudioTestDlg;
  21.  
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CSegment dialog
  24.  
  25. class CSegment : public CPropertyPage
  26. {
  27.     DECLARE_DYNCREATE(CSegment)
  28.  
  29. // Construction
  30. public:
  31.     CSegment();
  32.     ~CSegment();
  33.  
  34. // Dialog Data
  35.     //{{AFX_DATA(CSegment)
  36.     enum { IDD = IDD_PROPPAGE_MUSIC };
  37.     CButton    m_Stop;
  38.     CButton    m_Pause;
  39.     CButton    m_Play;
  40.     CListBox    m_Segments;
  41.     //}}AFX_DATA
  42.  
  43.  
  44. // Overrides
  45.     // ClassWizard generate virtual function overrides
  46.     //{{AFX_VIRTUAL(CSegment)
  47.     protected:
  48.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  49.     //}}AFX_VIRTUAL
  50.  
  51. public:
  52.     void UpdateControls();
  53.     void ClearList();
  54.     CAudioTestDlg*    m_pTestDlg;
  55. // Implementation
  56. protected:
  57.     // Generated message map functions
  58.     //{{AFX_MSG(CSegment)
  59.     virtual BOOL OnInitDialog();
  60.     afx_msg void OnDestroy();
  61.     afx_msg void OnSegInitialize();
  62.     afx_msg void OnSegDelete();
  63.     afx_msg void OnLoadSegment();
  64.     afx_msg void OnUnloadSegment();
  65.     afx_msg void OnPlaySegment();
  66.     afx_msg void OnPauseSegment();
  67.     afx_msg void OnStopSegment();
  68.     afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  69.     afx_msg void OnSelChangeListSegments();
  70.     afx_msg void OnDblclkListSegments();
  71.     //}}AFX_MSG
  72.     DECLARE_MESSAGE_MAP()
  73.  
  74.     HICON m_hPlayIcon;
  75.     HICON m_hPauseIcon;
  76.     HICON m_hStopIcon;
  77.  
  78.     bool m_bInit;
  79. };
  80.  
  81. //{{AFX_INSERT_LOCATION}}
  82. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  83.  
  84. #endif // !defined(AFX_SEGMENT_H__75DC20FA_817D_42D4_8115_9ECBFBE661C6__INCLUDED_)
  85.