win32: remove WindowInfo^.needParentPaint set in CreateHandle of ListBox and CheckListBox - they are set during WM_NCCREATE

git-svn-id: trunk@30091 -
This commit is contained in:
paul 2011-03-31 00:56:20 +00:00
parent ed876e5df9
commit e191075b61
2 changed files with 1 additions and 4 deletions

View File

@ -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;

View File

@ -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;