From 2765ee8bfc1fb0152ed2da324bdcb0a37f43c722 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Tue, 21 Apr 2020 16:27:40 +0200 Subject: make ALF_SetBackgroundColor disable color inheritance --- alf/alf.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'alf/alf.h') diff --git a/alf/alf.h b/alf/alf.h index bd8ca0e..32e221c 100644 --- a/alf/alf.h +++ b/alf/alf.h @@ -206,11 +206,17 @@ ALF_InvalidateBackground(HWND win); void ALF_UpdateFonts(HWND win); +// Sets the background color of the given window +// Also, if the window is a child window, disables the ALF_LAYOUT_INHERITBGCOLOR flag +// Only the following widgets have background colors: +// - Top-Level window +// - Panel +// TODO fix label, button void ALF_SetBackgroundColor(HWND win, ALFColor color); ALFColor -ALF_GetBackgroundColor(HWND win); +ALF_BackgroundColor(HWND win); void ALF_ResizeWindow(HWND win, int cptWidth, int cptHeight); -- cgit v1.2.3