home *** CD-ROM | disk | FTP | other *** search
/ Game Audio Programming / GameAudioProgramming.iso / Game_Audio / AudioTest / SoundOpen.h < prev    next >
C/C++ Source or Header  |  2002-05-27  |  2KB  |  52 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_SOUNDOPEN_H__5CAE5B27_5A8B_4654_9529_C8E26EE1274A__INCLUDED_)
  12. #define AFX_SOUNDOPEN_H__5CAE5B27_5A8B_4654_9529_C8E26EE1274A__INCLUDED_
  13.  
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17. // SoundOpen.h : header file
  18. //
  19.  
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CSoundOpen dialog
  22.  
  23. class CSoundOpen : public CFileDialog
  24. {
  25.     DECLARE_DYNAMIC(CSoundOpen)
  26.  
  27. public:
  28.     CSoundOpen(BOOL bOpenFileDialog, // TRUE for FileOpen, FALSE for FileSaveAs
  29.         LPCTSTR lpszDefExt = NULL,
  30.         LPCTSTR lpszFileName = NULL,
  31.         DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
  32.         LPCTSTR lpszFilter = "Sound Files (.wav;.mp3;.ogg;.wma)|*.wav;*.mp3;*.ogg;*.wma|All Files (*.*)|*.*||",
  33.         CWnd* pParentWnd = NULL);
  34.     virtual ~CSoundOpen();
  35.  
  36.     bool m_bStreaming;
  37.     bool m_bLooping;
  38.     bool m_bMusic;
  39.     virtual BOOL OnFileNameOK();
  40.  
  41. protected:
  42.     //{{AFX_MSG(CSoundOpen)
  43.         // NOTE - the ClassWizard will add and remove member functions here.
  44.     //}}AFX_MSG
  45.     DECLARE_MESSAGE_MAP()
  46. };
  47.  
  48. //{{AFX_INSERT_LOCATION}}
  49. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  50.  
  51. #endif // !defined(AFX_SOUNDOPEN_H__5CAE5B27_5A8B_4654_9529_C8E26EE1274A__INCLUDED_)
  52.