LCL: TGroupBox: Win32: Fix for doubled caption. Issue #31670

git-svn-id: trunk@54623 -
This commit is contained in:
michl 2017-04-17 11:36:57 +00:00
parent 95312d4835
commit e0e21cd0d0

View File

@ -541,7 +541,7 @@ begin
and not TCustomGroupBox(Info^.WinControl).Enabled then and not TCustomGroupBox(Info^.WinControl).Enabled then
begin begin
GroupBox := TCustomGroupBox(Info^.WinControl); GroupBox := TCustomGroupBox(Info^.WinControl);
DC := GetDC(Window); DC := Windows.GetDC(Window);
SetBkColor(DC, GetSysColor(COLOR_BTNFACE)); SetBkColor(DC, GetSysColor(COLOR_BTNFACE));
SetTextColor(DC, GetSysColor(COLOR_GRAYTEXT)); SetTextColor(DC, GetSysColor(COLOR_GRAYTEXT));
SelectObject(DC, GroupBox.Font.Reference.Handle); SelectObject(DC, GroupBox.Font.Reference.Handle);