mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 18:00:26 +02:00
LCL: Fix wrong ListBox painting in WinXP. Issue #28275, patch from wp.
git-svn-id: trunk@49321 -
This commit is contained in:
parent
c462c54354
commit
95725008c2
@ -613,8 +613,11 @@ begin
|
||||
Exit(DeliverMessage(WindowInfo^.WinControl, LMessage));
|
||||
end;
|
||||
WM_ERASEBKGND:
|
||||
// Avoid unnecessary background paints to avoid flickering of the listbox
|
||||
if WindowsVersion <= wvXP then // Standardbehavior for XP
|
||||
Result := CallDefaultWindowProc(Window, Msg, WParam, LParam)
|
||||
else
|
||||
begin
|
||||
// Avoid unnecessary background paints to avoid flickering of the listbox
|
||||
WindowInfo := GetWin32WindowInfo(Window);
|
||||
Count := SendMessage(Window, LB_GETCOUNT, 0, 0);
|
||||
if Assigned(WindowInfo^.WinControl) and
|
||||
|
Loading…
Reference in New Issue
Block a user