/*****************************************************************************
Open Source MIT License

Copyright (c) 2017 Matthew Ahmed

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*****************************************************************************/

// Headers.h

#pragma once

#include "StdAfx.h"  // Add MFC to use CImage

/* <== THIS BLOCK WAS COMMENTED AS REDUNDANT WHEN StdAfx.h?
// LEAN omits commdlg (openfile)
#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers


// Windows Header Files:
#include <windows.h>

#include "commdlg.h"   // For OpenFile if WIN32_LEAN_AND_MEAN above
*/

#include <dlgs.h>     // For OPENFILENAME ctl IDs in callback hook function

#include <time.h> // Mainly for Utils date fns, also if init srand w/ time(NULL)

/*
#include <commctrl.h>  // Progress bar. Imagelist also needs comctl32.lib
*/

// For SHBrowseForFolder etc., including Util wrapper BrowseForFolder
#define _WIN32_DCOM // If uncommented, must come before shlwapi.h
#if defined(_WIN32_DCOM)
#include <shlobj.h>
//#include <shellapi.h> // For SHGetFileInfo
#endif

/*
#include <shlwapi.h>  // For StrStr, etc. In Project properties, linker cmd
                      // line, need to add shlwapi.lib. => Leave on by default?

// C RunTime Header Files
#include <malloc.h>

#include <tchar.h>
#include <stdio.h>  // for sprintf (and _stprintf with tchar.h) etc.

*/

//#include <stdlib.h>
//#include <memory.h>

// //#include <windowsx.h>
// #include <string.h>
// #include <stdarg.h>    // Probably need to restore this? NO

// For _open, _topen
//#include <io.h>
//#include <fcntl.h>  // constants like _O_BINARY
//#include <sys/stat.h>

//#include <sys/types.h>

//#include <time.h> // Use GetTimeFormat, GetLocalTime etc to not need this

#include "Util.h"


