mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 10:39:20 +02:00
win32: remove groupbox wm_erasebackground workaround - this reduces flicking
git-svn-id: trunk@24942 -
This commit is contained in:
parent
2588baa18d
commit
e4743af864
@ -1524,19 +1524,10 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
if not GetNeedParentPaint(WindowInfo, lWinControl) or (eraseBkgndCommand = ecDoubleBufferNoRemove) then
|
if not GetNeedParentPaint(WindowInfo, lWinControl) or (eraseBkgndCommand = ecDoubleBufferNoRemove) then
|
||||||
begin
|
|
||||||
if ThemeServices.ThemesEnabled and WindowInfo^.isGroupBox and (lWinControl <> nil) then
|
|
||||||
begin
|
|
||||||
// Groupbox (which is a button) doesn't erase it's background properly; force repaint
|
|
||||||
lWinControl.EraseBackground(HDC(WParam));
|
|
||||||
LMessage.Result := 1;
|
|
||||||
end
|
|
||||||
else
|
|
||||||
begin
|
begin
|
||||||
LMessage.Msg := LM_ERASEBKGND;
|
LMessage.Msg := LM_ERASEBKGND;
|
||||||
LMessage.WParam := WParam;
|
LMessage.WParam := WParam;
|
||||||
LMessage.LParam := LParam;
|
LMessage.LParam := LParam;
|
||||||
end;
|
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
if not ThemeServices.ThemesEnabled then
|
if not ThemeServices.ThemesEnabled then
|
||||||
|
Loading…
Reference in New Issue
Block a user