| 1 | /* |
| 2 | * Descent 3 |
| 3 | * Copyright (C) 2024 Parallax Software |
| 4 | * |
| 5 | * Descent 3: Apex |
| 6 | * Copyright (C) 2024 by Justin Marshall |
| 7 | * |
| 8 | * This program is free software: you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation, either version 3 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | */ |
| 21 | |
| 22 | // stdafx.h : include file for standard system include files, |
| 23 | // or project specific include files that are used frequently, but |
| 24 | // are changed infrequently |
| 25 | // |
| 26 | |
| 27 | #pragma once |
| 28 | |
| 29 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers |
| 30 | |
| 31 | #include <afxwin.h> // MFC core and standard components |
| 32 | #include <afxext.h> // MFC extensions |
| 33 | #ifndef _AFX_NO_AFXCMN_SUPPORT |
| 34 | #include <afxcmn.h> // MFC support for Windows 95 Common Controls |
| 35 | #endif // _AFX_NO_AFXCMN_SUPPORT |
| 36 | |
| 37 | #include <afxole.h> // MFC OLE support (ADDED BY SAMIR) |
| 38 | #include <windows.h> |
| 39 | |
| 40 | // Various 64bit wrapper functions. |
| 41 | #undef GetWindowLong |
| 42 | #undef SetWindowLong |
| 43 | #undef SetClassLong |
| 44 | #undef LONG |
| 45 | |
| 46 | #define GWL_WNDPROC GWLP_WNDPROC |
| 47 | #define SetClassLong SetClassLongPtr |
| 48 | #define GetWindowLong GetWindowLongPtr |
| 49 | #define SetWindowLong SetWindowLongPtr |
| 50 | #define GWL_USERDATA GWLP_USERDATA |
| 51 | #define GCL_HICON GCLP_HICON |
| 52 | #define DWL_MSGRESULT DWLP_MSGRESULT |
| 53 | #define DWL_DLGPROC DWLP_DLGPROC |
| 54 | |
| 55 | #ifndef GCL_HBRBACKGROUND |
| 56 | #define GCL_HBRBACKGROUND (-10) |
| 57 | #endif |