win32: notify LCL about notebook size change in case of switching multiline property

git-svn-id: trunk@25506 -
This commit is contained in:
paul 2010-05-19 08:30:36 +00:00
parent e362c99c72
commit 32ae8008b2

View File

@ -718,9 +718,8 @@ begin
if NewStyle <> CurrentStyle then
begin
SetWindowLong(ANotebook.Handle, GWL_STYLE, NewStyle);
ANotebook.InvalidateClientRectCache(False);
SetWindowPos(ANoteBook.Handle, 0, 0, 0, 0, 0, SWP_NOSIZE or SWP_NOMOVE or SWP_NOZORDER or SWP_DRAWFRAME);
InvalidateRect(ANoteBook.Handle, nil, True);
LCLControlSizeNeedsUpdate(ANotebook, True);
end;
end;