summaryrefslogtreecommitdiff
path: root/alf/alf.cpp
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-20 17:18:20 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-20 17:18:20 +0200
commit079fdbf1a553e314cbba386b85ca92b67c61b8df (patch)
tree7b025b94cd6cdcb26e5dde27207f7761ac1a394d /alf/alf.cpp
parent4efad16e663d33f4700ab77c133ad99e2cdea40f (diff)
fixup transparent background work and add test in widgetfactory
Win32s bites once again with its 16bit WPARAM
Diffstat (limited to 'alf/alf.cpp')
-rw-r--r--alf/alf.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/alf/alf.cpp b/alf/alf.cpp
index 311c65b..3bf9ae7 100644
--- a/alf/alf.cpp
+++ b/alf/alf.cpp
@@ -439,3 +439,21 @@ ALF_ColorToGdi(ALFColor color)
return (COLORREF)color;
}
}
+
+void
+ALF_InvalidateBackground(HWND win)
+{
+ SendMessage(win, ALF_WM_BACKGROUNDCHANGE, 0, 0);
+}
+
+void
+ALF_SetBackgroundColor(HWND win, ALFColor color)
+{
+ SendMessage(win, ALF_WM_SETBGCOLOR, 0, (LPARAM)color);
+}
+
+ALFColor
+ALF_GetBackgroundColor(HWND win)
+{
+ return (ALFColor)SendMessage(win, ALF_WM_GETBGCOLOR, 0, 0);
+}