From d7c14055e4e16119c5282c86ecf7b22bbc09822b Mon Sep 17 00:00:00 2001 From: Pascal Junck Date: Wed, 27 Oct 2004 12:14:24 +0000 Subject: INTEGRATION: CWS dbwizard1 (1.37.40); FILE MERGED 2004/10/20 14:24:19 pl 1.37.40.1: #i35858# GetClientSize is supposed to return 0,0 on invisible windows --- vcl/source/window/syswin.cxx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'vcl/source') diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx index 350e699fb858..e19d821d43c3 100644 --- a/vcl/source/window/syswin.cxx +++ b/vcl/source/window/syswin.cxx @@ -2,9 +2,9 @@ * * $RCSfile: syswin.cxx,v $ * - * $Revision: 1.37 $ + * $Revision: 1.38 $ * - * last change: $Author: obo $ $Date: 2004-09-09 16:22:26 $ + * last change: $Author: pjunck $ $Date: 2004-10-27 13:14:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -691,12 +691,9 @@ void SystemWindow::SetWindowStateData( const WindowStateData& rData ) mpFrame->SetWindowState( &aState ); - // Syncrones Resize ausloesen, damit wir nach Moeglichkeit gleich - // mit der richtigen Groesse rechnen - long nNewWidth; - long nNewHeight; - pWindow->mpFrame->GetClientSize( nNewWidth, nNewHeight ); - ImplHandleResize( pWindow, nNewWidth, nNewHeight ); + // do a synchronous resize for layout reasons + if( rData.GetMask() & (WINDOWSTATE_MASK_WIDTH|WINDOWSTATE_MASK_HEIGHT) ) + ImplHandleResize( pWindow, rData.GetWidth(), rData.GetHeight() ); } else { -- cgit