X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/894057d1dd154ad2ee06e911eef818c52789a576..90f6792f530002cf3718b0ab0ce7727be1d21729:/src/univ/topluniv.cpp 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 )