summaryrefslogtreecommitdiff
path: root/alf/alfcompat.h
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alfcompat.h')
-rw-r--r--alf/alfcompat.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/alf/alfcompat.h b/alf/alfcompat.h
new file mode 100644
index 0000000..a6c4a91
--- /dev/null
+++ b/alf/alfcompat.h
@@ -0,0 +1,19 @@
+#include <windows.h>
+
+#ifndef WM_DPICHANGED
+#define WM_DPICHANGED 0x02E0
+#endif
+
+typedef LRESULT (CALLBACK *ALF_COMPAT_SUBCLASSPROC)(HWND,UINT,WPARAM,LPARAM,UINT_PTR,DWORD_PTR);
+typedef struct {
+ LRESULT (WINAPI *SetWindowSubclass)(HWND, ALF_COMPAT_SUBCLASSPROC, UINT_PTR, DWORD_PTR);
+ LRESULT (WINAPI *DefSubclassProc)(HWND, UINT, WPARAM, LPARAM);
+ BOOL (WINAPI *RemoveWindowSubclass)(HWND, ALF_COMPAT_SUBCLASSPROC, UINT_PTR);
+ int (WINAPI *GetSystemMetricsForDpi)(int, UINT);
+ BOOL (WINAPI *IsAppThemed)(void);
+ UINT (WINAPI *GetDpiForWindow)(HWND);
+ BOOL (WINAPI *SystemParametersInfoForDpi)(UINT,UINT,PVOID,UINT,UINT);
+ BOOL (WINAPI *AdjustWindowRectExForDpi)(LPRECT,DWORD,BOOL,DWORD,UINT);
+} ALFCompatFunctions;
+
+