summaryrefslogtreecommitdiff
path: root/alf/alf.h
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2018-12-27 22:54:55 +0100
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2018-12-27 23:01:28 +0100
commita5f3ea9ac12fccbc9faf3f152d4dfbe7f263268e (patch)
tree7e66ed4d7cb7e4b4ae56d8b562ff08121bf43026 /alf/alf.h
parentb0b0e97aa5a06b22768bb9c9ea5e8caf383d78a4 (diff)
make label, edit and button text line up perfectly
Diffstat (limited to 'alf/alf.h')
-rw-r--r--alf/alf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/alf/alf.h b/alf/alf.h
index d56afa5..d21a295 100644
--- a/alf/alf.h
+++ b/alf/alf.h
@@ -29,6 +29,7 @@ typedef struct {
#define ALF_HEXPAND 0x02
#define ALF_VEXPAND 0x04
#define ALF_MESSAGEFONT 0x08
+#define ALF_APPLYSIZE 0x10
// messages
#define ALF_WM__BASE 0x2800
@@ -43,6 +44,7 @@ typedef struct {
#define ALF_WM_CENTIPOINTTOPX (ALF_WM__BASE + 9)
#define ALF_WM_SETFOCUS (ALF_WM__BASE + 10)
#define ALF_WM_GETAPPLICATION (ALF_WM__BASE + 11)
+#define ALF_WM_APPLYSIZE (ALF_WM__BASE + 12)
typedef struct {
const WCHAR *className;
@@ -72,6 +74,8 @@ 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);
} ALFCompatFunctions;
typedef struct ALFAppPriv *ALFAPP;