From f8d56830723589a37f74834f693b72b734cbb8a8 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 18 Sep 2003 13:03:27 +0000 Subject: [PATCH] Applied patch [ 808328 ] restore border styles for wxFrame git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/toplevel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index e978a597fb..6874f1327d 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -172,6 +172,8 @@ WXDWORD wxTopLevelWindowMSW::MSWGetStyle(long style, WXDWORD *exflags) const msflags |= WS_THICKFRAME; #endif } + else if ( exflags && ((style & wxBORDER_DOUBLE) || (style & wxBORDER_RAISED)) ) + *exflags |= WS_EX_DLGMODALFRAME; else if ( !(style & wxBORDER_NONE) ) msflags |= WS_BORDER; #ifndef __WXWINCE__ @@ -213,7 +215,7 @@ WXDWORD wxTopLevelWindowMSW::MSWGetStyle(long style, WXDWORD *exflags) const if ( exflags ) { -#if !defined(__WIN16__) +#if !defined(__WIN16__) if ( !(GetExtraStyle() & wxTOPLEVEL_EX_DIALOG) ) { if ( style & wxFRAME_TOOL_WINDOW )