rtoss - Rev 298

Subversion Repositories:
Rev:

/*****************************************************************************


  OFN
  ---

  Small mini class for easier OpenFileName-stuff

  by yoda

  WWW:      y0da.cjb.net
  E-mail:   LordPE@gmx.net

  You are allowed to use this source code in your own projects if you mention
  my name.

*****************************************************************************/


#ifndef __OFN_h__
#define __OFN_h__

#include <windows.h>
#include <commdlg.h>

//
// constants
//
#define DEFAULT_OFN_SAVE    OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT
#define DEFAULT_OFN_OPEN    OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY

//
// OFN
//
class OFN
{
public:
        OPENFILENAME  ofnOpen;
        OPENFILENAME  ofnSave;
        char          cPathOpen[MAX_PATH], cPathSave[MAX_PATH];

        OFN();
        ~OFN();
        BOOL          GetOpenFilePath();
        BOOL          GetSaveFilePath();
};

#endif