From 03442ee2a9f63dc57992d3888c7167d3c0dafd0f Mon Sep 17 00:00:00 2001 From: michl Date: Tue, 4 Jul 2017 20:08:50 +0000 Subject: [PATCH] Win32: TGroupBox: Fixed wrong background color for inactive groupbox. git-svn-id: trunk@55442 - --- lcl/interfaces/win32/win32wsstdctrls.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcl/interfaces/win32/win32wsstdctrls.pp b/lcl/interfaces/win32/win32wsstdctrls.pp index 1af050c898..ab13df8d4a 100644 --- a/lcl/interfaces/win32/win32wsstdctrls.pp +++ b/lcl/interfaces/win32/win32wsstdctrls.pp @@ -542,7 +542,7 @@ begin begin GroupBox := TCustomGroupBox(Info^.WinControl); DC := Windows.GetDC(Window); - SetBkColor(DC, GetSysColor(COLOR_BTNFACE)); + SetBkMode(DC, TRANSPARENT); SetTextColor(DC, GetSysColor(COLOR_GRAYTEXT)); SelectObject(DC, GroupBox.Font.Reference.Handle); Flags := 0;