diff options
Diffstat (limited to 'alf/alf.cpp')
| -rw-r--r-- | alf/alf.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/alf/alf.cpp b/alf/alf.cpp index 3bf9ae7..a23bdf0 100644 --- a/alf/alf.cpp +++ b/alf/alf.cpp @@ -449,11 +449,16 @@ ALF_InvalidateBackground(HWND win) void ALF_SetBackgroundColor(HWND win, ALFColor color) { + HWND parent = GetParent(win); + if (parent) { + ALF_RemoveWidgetLayoutFlag(parent, win, ALF_LAYOUT_INHERITBGCOLOR); + } + SendMessage(win, ALF_WM_SETBGCOLOR, 0, (LPARAM)color); } ALFColor -ALF_GetBackgroundColor(HWND win) +ALF_BackgroundColor(HWND win) { return (ALFColor)SendMessage(win, ALF_WM_GETBGCOLOR, 0, 0); } |
