From cf0ef96e075b2ad6a654bd6e52f992e9423a2efd Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Wed, 20 Jun 2007 09:38:21 +0000 Subject: INTEGRATION: CWS jl61 (1.36.144); FILE MERGED 2007/05/11 07:21:37 ab 1.36.144.1: #i77021# Dialog::Draw(): Check WB_NOBORDER style --- vcl/source/window/dialog.cxx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'vcl/source/window/dialog.cxx') diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index b8203d734f72..bbb1ef4d9751 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -4,9 +4,9 @@ * * $RCSfile: dialog.cxx,v $ * - * $Revision: 1.36 $ + * $Revision: 1.37 $ * - * last change: $Author: vg $ $Date: 2006-11-22 10:40:03 $ + * last change: $Author: kz $ $Date: 2007-06-20 10:38:21 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -997,13 +997,16 @@ void Dialog::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULO pDev->DrawRect( Rectangle( aPos, aSize ) ); - ImplBorderWindow aImplWin( this, WB_BORDER|WB_STDWORK, BORDERWINDOW_STYLE_OVERLAP ); - aImplWin.SetText( GetText() ); - aImplWin.SetPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height() ); - aImplWin.SetDisplayActive( TRUE ); - aImplWin.InitView(); + if (!( GetStyle() & WB_NOBORDER )) + { + ImplBorderWindow aImplWin( this, WB_BORDER|WB_STDWORK, BORDERWINDOW_STYLE_OVERLAP ); + aImplWin.SetText( GetText() ); + aImplWin.SetPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height() ); + aImplWin.SetDisplayActive( TRUE ); + aImplWin.InitView(); - aImplWin.Draw( Rectangle( aPos, aSize ), pDev, aPos ); + aImplWin.Draw( Rectangle( aPos, aSize ), pDev, aPos ); + } pDev->Pop(); } -- cgit