From e191075b617b8daad2f952cc0a9547cb7c797a69 Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 31 Mar 2011 00:56:20 +0000 Subject: [PATCH] win32: remove WindowInfo^.needParentPaint set in CreateHandle of ListBox and CheckListBox - they are set during WM_NCCREATE git-svn-id: trunk@30091 - --- lcl/interfaces/win32/win32wschecklst.pp | 2 -- lcl/interfaces/win32/win32wsstdctrls.pp | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lcl/interfaces/win32/win32wschecklst.pp b/lcl/interfaces/win32/win32wschecklst.pp index c077bbbd17..b4a7a7cc21 100644 --- a/lcl/interfaces/win32/win32wschecklst.pp +++ b/lcl/interfaces/win32/win32wschecklst.pp @@ -166,8 +166,6 @@ begin end; // create window FinishCreateWindow(AWinControl, Params, False, True); - // listbox is not a transparent control -> no need for parentpainting - Params.WindowInfo^.needParentPaint := False; Result := Params.Window; end; diff --git a/lcl/interfaces/win32/win32wsstdctrls.pp b/lcl/interfaces/win32/win32wsstdctrls.pp index b61db7f497..dc54177232 100644 --- a/lcl/interfaces/win32/win32wsstdctrls.pp +++ b/lcl/interfaces/win32/win32wsstdctrls.pp @@ -587,6 +587,7 @@ begin WindowInfo^.WinControl := NCCreateParams^.WinControl; WindowInfo^.WinControl.Handle := Window; WindowInfo^.DefWndProc := NCCreateParams^.DefWndProc; + // listbox is not a transparent control -> no need for parentpainting WindowInfo^.needParentPaint := False; SetWindowLong(Window, GWL_ID, PtrInt(NCCreateParams^.WinControl)); NCCreateParams^.Handled := True; @@ -642,8 +643,6 @@ begin end; // create window FinishCreateWindow(AWinControl, Params, False, True); - // listbox is not a transparent control -> no need for parentpainting - Params.WindowInfo^.needParentPaint := False; Result := Params.Window; end;