home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Freeware / Utilitare / VisualBoyAdvance-1.7.2 / src / win32 / FileDlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-05-13  |  2.1 KB  |  67 lines

  1. // -*- C++ -*-
  2. // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
  3. // Copyright (C) 1999-2003 Forgotten
  4. // Copyright (C) 2004 Forgotten and the VBA development team
  5.  
  6. // This program is free software; you can redistribute it and/or modify
  7. // it under the terms of the GNU General Public License as published by
  8. // the Free Software Foundation; either version 2, or(at your option)
  9. // any later version.
  10. //
  11. // This program is distributed in the hope that it will be useful,
  12. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. // GNU General Public License for more details.
  15. //
  16. // You should have received a copy of the GNU General Public License
  17. // along with this program; if not, write to the Free Software Foundation,
  18. // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  19.  
  20. // FileDlg.h: interface for the FileDlg class.
  21. //
  22. //////////////////////////////////////////////////////////////////////
  23. #if !defined(AFX_FILEDLG_H__7E4F8B92_1B63_4126_8261_D9334C645940__INCLUDED_)
  24. #define AFX_FILEDLG_H__7E4F8B92_1B63_4126_8261_D9334C645940__INCLUDED_
  25.  
  26. #if _MSC_VER > 1000
  27. #pragma once
  28. #endif // _MSC_VER > 1000
  29. // FileDlg.h : header file
  30. //
  31.  
  32. struct OPENFILENAMEEX : public OPENFILENAME {
  33.   void *        pvReserved;
  34.   DWORD         dwReserved;
  35.   DWORD         FlagsEx;
  36. };
  37.  
  38. /////////////////////////////////////////////////////////////////////////////
  39. // FileDlg dialog
  40.  
  41. class FileDlg
  42. {
  43.  private:
  44.   CString m_file;
  45.   CString m_filter;
  46.  public:
  47.   OPENFILENAMEEX m_ofn;
  48.   int DoModal();
  49.   LPCTSTR GetPathName();
  50.   virtual int getFilterIndex();
  51.   virtual void OnTypeChange(HWND hwnd);
  52.   FileDlg(CWnd *parent, LPCTSTR file, LPCTSTR filter,
  53.           int filterIndex, LPCTSTR ext, LPCTSTR *exts, LPCTSTR initialDir, 
  54.           LPCTSTR title, bool save);
  55.   virtual ~FileDlg();
  56.   
  57.  protected:
  58.   bool isSave;
  59.   LPCTSTR *extensions;
  60.  
  61.  protected:
  62.     //{{AFX_INSERT_LOCATION}}
  63.     // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  64. };
  65.  
  66. #endif // !defined(AFX_FILEDLG_H__7E4F8B92_1B63_4126_8261_D9334C645940__INCLUDED_)
  67.