summaryrefslogtreecommitdiff
path: root/alf/alf.h
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-21 20:36:51 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-21 20:36:51 +0200
commitff8c127b6bdaf8133bae8d06f1216f5d267d4986 (patch)
treea2dba5d0ed6376ca446be04386aa5e290c8f1755 /alf/alf.h
parent2765ee8bfc1fb0152ed2da324bdcb0a37f43c722 (diff)
notebook: add option of using a solid background
unfortunately, only xp supplies actually matching color hints the color hint of Vista and later is very different from the texture used, so it looks quite ugly there :/
Diffstat (limited to 'alf/alf.h')
-rw-r--r--alf/alf.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/alf/alf.h b/alf/alf.h
index 32e221c..0d336c9 100644
--- a/alf/alf.h
+++ b/alf/alf.h
@@ -62,6 +62,9 @@ typedef struct {
#define ALF_LABEL_ALIGN_BOTTOM 12
#define ALF_LABEL_VALIGN_MASK 12
+// notebook flags
+#define ALF_NOTEBOOK_SOLID_TAB_BACKGROUND 1
+
// messages
#define ALF_WM__BASE 0x2800
@@ -107,6 +110,9 @@ typedef struct {
#define ALF_WM_PANEL_SETVTABLE (ALF_WM__BASE + 201)
+#define ALF_WM_NTBK_GETFLAGS (ALF_WM__BASE + 201)
+#define ALF_WM_NTBK_SETFLAGS (ALF_WM__BASE + 202)
+
typedef DWORD ALFColor;
#define ALF_COLOR_TRANSPARENT ((ALFColor)-1)
@@ -378,6 +384,22 @@ ALF_NotebookSelectedPanel(HWND notebook);
HWND
ALF_NotebookTabPanel(HWND notebook, int index);
+DWORD
+ALF_NotebookFlags(HWND notebook);
+
+void
+ALF_NotebookSetFlags(HWND notebook, DWORD flags);
+
+static inline void
+ALF_NotebookAddFlag(HWND notebook, DWORD flag) {
+ ALF_NotebookSetFlags(notebook, ALF_NotebookFlags(notebook) | flag);
+}
+
+static inline void
+ALF_NotebookRemoveFlag(HWND notebook, DWORD flag) {
+ ALF_NotebookSetFlags(notebook, ALF_NotebookFlags(notebook) & ~flag);
+}
+
#ifdef __cplusplus
} // extern C
#endif