summaryrefslogtreecommitdiff
path: root/win/Stdafx.h
diff options
context:
space:
mode:
Diffstat (limited to 'win/Stdafx.h')
-rw-r--r--win/Stdafx.h48
1 files changed, 43 insertions, 5 deletions
diff --git a/win/Stdafx.h b/win/Stdafx.h
index 1332794..e92ba02 100644
--- a/win/Stdafx.h
+++ b/win/Stdafx.h
@@ -1,7 +1,6 @@
// stdafx.h : include file for standard system include files,
-// or project specific include files that are used frequently, but
-// are changed infrequently
-//
+// or project specific include files that are used frequently,
+// but are changed infrequently
#if !defined(AFX_STDAFX_H__195E1F4C_3FF2_11D2_8202_D2B1707B2D1B__INCLUDED_)
#define AFX_STDAFX_H__195E1F4C_3FF2_11D2_8202_D2B1707B2D1B__INCLUDED_
@@ -10,12 +9,39 @@
#pragma once
#endif // _MSC_VER >= 1000
+#define _CRT_SECURE_NO_DEPRECATE 1
+
+#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
+#endif
+
+#if _MSC_VER >= 1400
+
+#ifndef WINVER // Allow use of features specific to Windows XP or later.
+#define WINVER 0x0501 // Change this to the appropriate value to target other versions of Windows.
+#endif
+
+#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
+#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows.
+#endif
+
+#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
+#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
+#endif
-#include <windowsx.h> // GlobalFreePtr()
+#ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later.
+#define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE.
+#endif
+
+#endif
+
+// turns off MFC's hiding of some common and often safely ignored warning messages
+#define _AFX_ALL_WARNINGS
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
+#include <afxcoll.h>
+#include <afxtempl.h>
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
@@ -27,7 +53,19 @@ typedef DWORD ACTIVATEAPPPARAM;
typedef HTASK ACTIVATEAPPPARAM;
#endif
-//#include <afxadv.h> // CSharedFile
+#if _MFC_VER < 0x0800
+#define _strcmpi strcmp
+#define _strlwr strlwr
+#define _strupr strupr
+#else
+#define snprintf _snprintf
+#endif
+
+#if _MFC_VER >= 0x0800
+typedef LRESULT NCHITTESTRETURN;
+#else
+typedef UINT NCHITTESTRETURN;
+#endif
#include "opengl.h"