LCL: reactivated sending uninitialized bounds of TCustomPage to interface

git-svn-id: trunk@11191 -
This commit is contained in:
mattias 2007-05-24 08:33:49 +00:00
parent 84a9e3e870
commit e16a765e54
3 changed files with 12 additions and 0 deletions

View File

@ -69,7 +69,9 @@ type
function DialogChar(var Message: TLMKey): boolean; override; function DialogChar(var Message: TLMKey): boolean; override;
procedure DoHide; dynamic; procedure DoHide; dynamic;
procedure DoShow; dynamic; procedure DoShow; dynamic;
{$IFDEF EnableSizePatch}
procedure DoSendBoundsToInterface; override; procedure DoSendBoundsToInterface; override;
{$ENDIF}
public public
constructor Create(TheOwner: TComponent); override; constructor Create(TheOwner: TComponent); override;
procedure AdjustClientRect(var ARect: TRect); override; procedure AdjustClientRect(var ARect: TRect); override;

View File

@ -200,10 +200,12 @@ begin
FOnShow(Self); FOnShow(Self);
end; end;
{$IFDEF EnableSizePatch}
procedure TCustomPage.DoSendBoundsToInterface; procedure TCustomPage.DoSendBoundsToInterface;
begin begin
// a page is only sized by the interface // a page is only sized by the interface
end; end;
{$ENDIF}
function TCustomPage.IsControlVisible: Boolean; function TCustomPage.IsControlVisible: Boolean;
begin begin

View File

@ -1161,6 +1161,14 @@ begin
end end
else else
SizeMsg.SizeType:=SIZENORMAL; SizeMsg.SizeType:=SIZENORMAL;
// don't bother the LCL if nothing changed
case SizeMsg.SizeType of
SIZENORMAL: if TheForm.WindowState=wsNormal then exit;
SIZEICONIC: if TheForm.WindowState=wsMinimized then exit;
SIZEFULLSCREEN: if TheForm.WindowState=wsMaximized then exit;
end;
with SizeMsg do with SizeMsg do
begin begin
Result := 0; Result := 0;