From 79d3dfac2fab5566dd0773e7226bee74fe989e15 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 23 Nov 2006 14:50:42 +0000 Subject: [PATCH] correctly render titlebars for TLWs with wxCAPTION but without wxCLOSE_BOX git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/topluniv.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/univ/topluniv.cpp b/src/univ/topluniv.cpp index fd967417a1..a93554e73d 100644 --- a/src/univ/topluniv.cpp +++ b/src/univ/topluniv.cpp @@ -184,7 +184,9 @@ long wxTopLevelWindow::GetDecorationsStyle() const ms_canIconize = wxSystemSettings::HasFeature(wxSYS_CAN_ICONIZE_FRAME); } - style |= wxTOPLEVEL_TITLEBAR | wxTOPLEVEL_BUTTON_CLOSE; + style |= wxTOPLEVEL_TITLEBAR; + if ( m_windowStyle & wxCLOSE_BOX ) + style |= wxTOPLEVEL_BUTTON_CLOSE; if ( (m_windowStyle & wxMINIMIZE_BOX) && ms_canIconize ) style |= wxTOPLEVEL_BUTTON_ICONIZE; if ( m_windowStyle & wxMAXIMIZE_BOX ) -- 2.50.0