From fe078af239f3b73651c32bb1cdb158dcab39ad5c Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Sun, 30 Jun 2019 12:48:57 +0200 Subject: label reimplement --- alf/alf.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'alf/alf.h') diff --git a/alf/alf.h b/alf/alf.h index b9fe0be..d74553b 100644 --- a/alf/alf.h +++ b/alf/alf.h @@ -36,6 +36,19 @@ typedef struct { // sends a ALF_WM_APPLYFONTS message to the widget with ALFWindowFonts* lparam #define ALF_SENDAPPLYFONTS 0x80 +// label style flags +#define ALF_LABEL_ALIGN_LEFT 0 +#define ALF_LABEL_ALIGN_LEFT_LIKE_EDIT 1 +#define ALF_LABEL_ALIGN_HCENTER 2 +#define ALF_LABEL_ALIGN_RIGHT 3 +#define ALF_LABEL_HALIGN_MASK 3 +#define ALF_LABEL_ALIGN_TOP 0 +#define ALF_LABEL_ALIGN_TOP_LIKE_EDIT 4 +#define ALF_LABEL_ALIGN_VCENTER 8 +#define ALF_LABEL_ALIGN_BOTTOM 12 +#define ALF_LABEL_VALIGN_MASK 12 + + // messages #define ALF_WM__BASE 0x2800 #define ALF_WM_QUERYSIZE (ALF_WM__BASE + 1) @@ -55,6 +68,10 @@ typedef struct { #define ALF_WM_APPLYFONTS (ALF_WM__BASE + 16) #define ALF_WM_PRETRANSLATEMSG (ALF_WM__BASE + 17) +#define ALF_WM_LBL_GETSTYLE (ALF_WM__BASE + 201) +#define ALF_WM_LBL_SETSTYLE (ALF_WM__BASE + 202) + + typedef struct { const TCHAR *className; UINT classStyle; -- cgit v1.2.3