29 #include "../../idlib/precompiled.h"
40 static char THIS_FILE[] = __FILE__;
49 DWORD dwFlags, LPCTSTR lpszFilter, CWnd* pParentWnd) :
50 CFileDialog(bOpenFileDialog, lpszDefExt, lpszFileName, dwFlags, lpszFilter, pParentWnd)
52 m_ofn.Flags |= (OFN_EXPLORER | OFN_ENABLETEMPLATE);
66 CString str = GetPathName();
68 CWnd *pWnd = GetDlgItem(IDC_BTN_PLAY);
73 if (str.Find(
".wav") >= 0)
75 pWnd->EnableWindow(
TRUE);
79 pWnd->EnableWindow(
FALSE);
86 CString str = GetPathName();
87 if (str.GetLength() > 0)
89 sndPlaySound(str, SND_FILENAME | SND_ASYNC);
95 CFileDialog::OnInitDialog();
100 pWnd->EnableWindow(
FALSE);
virtual BOOL OnInitDialog()