From a5f3ea9ac12fccbc9faf3f152d4dfbe7f263268e Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Thu, 27 Dec 2018 22:54:55 +0100 Subject: make label, edit and button text line up perfectly --- alf/alf.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'alf/alf.h') 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; -- cgit v1.2.3