summaryrefslogtreecommitdiff
path: root/alf/alfcompat.h
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2019-04-29 22:10:17 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2019-04-29 22:10:17 +0200
commitac07e9afb9ef67ae227966425f85c26613b7ea94 (patch)
tree34e6307dc2d40366214de873a9f6689849226c2c /alf/alfcompat.h
parentd64290aaffd4721518747713929d79a78ba963f4 (diff)
remove app, use global variables instead
also some unrelated combobox fixes
Diffstat (limited to 'alf/alfcompat.h')
-rw-r--r--alf/alfcompat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/alf/alfcompat.h b/alf/alfcompat.h
index e0faf62..0d5a7d4 100644
--- a/alf/alfcompat.h
+++ b/alf/alfcompat.h
@@ -8,6 +8,9 @@
#define WM_DPICHANGED 0x02E0
#endif
+extern "C" IMAGE_DOS_HEADER __ImageBase;
+#define ALF_HINSTANCE ((HINSTANCE)&__ImageBase)
+
typedef LRESULT (CALLBACK *ALF_COMPAT_SUBCLASSPROC)(HWND,UINT,WPARAM,LPARAM,UINT_PTR,DWORD_PTR);
typedef struct {