diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-06-17 10:44:01 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-06-17 10:44:01 +0000 |
commit | 777bd108f4ff95957ea1e457dae6e48cdadb9277 (patch) | |
tree | 21adecaf19e89a08a28e7388f75fc678d26e51a7 /vcl/source/window/wrkwin.cxx | |
parent | 4bc3372ff81224548064426b9cc7ca3a386d1334 (diff) |
INTEGRATION: CWS gh6 (1.10.76); FILE MERGED
2004/05/12 15:51:32 pl 1.10.76.3: #116634# state mask is input, not output parameter
2004/03/18 09:30:26 pl 1.10.76.2: #i26400# add: IsMaximized()
2004/03/17 18:32:26 pl 1.10.76.1: #i26400# add: Maximize method
Diffstat (limited to 'vcl/source/window/wrkwin.cxx')
-rw-r--r-- | vcl/source/window/wrkwin.cxx | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/vcl/source/window/wrkwin.cxx b/vcl/source/window/wrkwin.cxx index c6694817aa36..2802fde4b04a 100644 --- a/vcl/source/window/wrkwin.cxx +++ b/vcl/source/window/wrkwin.cxx @@ -2,9 +2,9 @@ * * $RCSfile: wrkwin.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: vg $ $Date: 2004-01-06 14:22:26 $ + * last change: $Author: rt $ $Date: 2004-06-17 11:44:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -333,13 +333,6 @@ void WorkWindow::ImplSetFrameState( ULONG aFrameState ) aState.mnMask = SAL_FRAMESTATE_MASK_STATE; aState.mnState = aFrameState; //SAL_FRAMESTATE_MAXIMIZED; 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 ); } @@ -364,3 +357,22 @@ BOOL WorkWindow::Close() return bCanClose; } +void WorkWindow::Maximize( BOOL bMaximize ) +{ + ImplSetFrameState( bMaximize ? SAL_FRAMESTATE_MAXIMIZED : SAL_FRAMESTATE_NORMAL ); +} + +BOOL WorkWindow::IsMaximized() +{ + BOOL bRet = FALSE; + + SalFrameState aState; + if( mpFrame->GetWindowState( &aState ) ) + { + if( aState.mnState & (SAL_FRAMESTATE_MAXIMIZED | + SAL_FRAMESTATE_MAXIMIZED_HORZ | + SAL_FRAMESTATE_MAXIMIZED_VERT ) ) + bRet = TRUE; + } + return bRet; +} |