Debian Codegraph @

editor/mfc_compatibility.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Descent Developers
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 /**
20 * MFC is not 64bit compatible, so we have to re-define some macros,
21 * changing pointer types that MFC expects to be 32bit to actual 32bit types
22 */
23
24 #include "stdafx.h"
25 #ifdef ON_WM_TIMER
26 #undef ON_WM_TIMER
27 #define ON_WM_TIMER() \
28 {WM_TIMER, \
29 0, \
30 0, \
31 0, \
32 AfxSig_v_up_v, \
33 (AFX_PMSG)(AFX_PMSGW)(static_cast<void (AFX_MSG_CALL CWnd::*)(UINT)>(&ThisClass ::OnTimer))},
34 #endif
35
36 #ifdef ON_REGISTERED_MESSAGE
37 #undef ON_REGISTERED_MESSAGE
38 #define ON_REGISTERED_MESSAGE(nMessageVariable, memberFxn) \
39 {0xC000, \
40 0, \
41 0, \
42 0, \
43 (UINT_PTR)(UINT *)(&nMessageVariable), /*implied 'AfxSig_lwl'*/ \
44 (AFX_PMSG)(AFX_PMSGW)(static_cast<LONG (AFX_MSG_CALL CWnd::*)(WPARAM, LPARAM)>(memberFxn))},
45 #endif