win32: remove groupbox wm_erasebackground workaround - this reduces flicking

git-svn-id: trunk@24942 -
This commit is contained in:
paul 2010-04-26 01:55:11 +00:00
parent 2588baa18d
commit e4743af864
2 changed files with 4 additions and 13 deletions

View File

@ -1524,19 +1524,10 @@ begin
exit;
end;
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
LMessage.Msg := LM_ERASEBKGND;
LMessage.WParam := WParam;
LMessage.LParam := LParam;
end;
end else
begin
if not ThemeServices.ThemesEnabled then