Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

WaveOpen.cpp File Reference

#include "stdafx.h"
#include "Radiant.h"
#include "WaveOpen.h"
#include "mmsystem.h"

Include dependency graph for WaveOpen.cpp:

Include dependency graph

Go to the source code of this file.

Functions

 BEGIN_MESSAGE_MAP (CWaveOpen, CFileDialog) ON_BN_CLICKED(IDC_BTN_PLAY
OnBtnPlay END_MESSAGE_MAP () void CWaveOpen
 IMPLEMENT_DYNAMIC (CWaveOpen, CFileDialog) CWaveOpen


Function Documentation

BEGIN_MESSAGE_MAP CWaveOpen  ,
CFileDialog 
 

OnBtnPlay END_MESSAGE_MAP  ) 
 

Definition at line 54 of file WaveOpen.cpp.

References FALSE, IDC_BTN_PLAY, and TRUE.

00058 {
00059   CString str = GetPathName();
00060   str.MakeLower();
00061   CWnd *pWnd = GetDlgItem(IDC_BTN_PLAY);
00062   if (pWnd == NULL)
00063   {
00064     return;
00065   }
00066   if (str.Find(".wav") >= 0)
00067   {
00068     pWnd->EnableWindow(TRUE);
00069   }
00070   else
00071   {
00072     pWnd->EnableWindow(FALSE);
00073   }
00074 }

IMPLEMENT_DYNAMIC CWaveOpen  ,
CFileDialog 
 

Definition at line 39 of file WaveOpen.cpp.

References IDD_PLAYWAVE.

00042                                                              :
00043         CFileDialog(bOpenFileDialog, lpszDefExt, lpszFileName, dwFlags, lpszFilter, pParentWnd)
00044 {
00045   m_ofn.Flags |= (OFN_EXPLORER | OFN_ENABLETEMPLATE);
00046   m_ofn.lpTemplateName = MAKEINTRESOURCE(IDD_PLAYWAVE);
00047 }


Generated on Thu Aug 25 18:38:20 2005 for Quake III Arena by  doxygen 1.3.9.1