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
This commit is contained in:
@@ -184,7 +184,9 @@ long wxTopLevelWindow::GetDecorationsStyle() const
|
|||||||
ms_canIconize = wxSystemSettings::HasFeature(wxSYS_CAN_ICONIZE_FRAME);
|
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 )
|
if ( (m_windowStyle & wxMINIMIZE_BOX) && ms_canIconize )
|
||||||
style |= wxTOPLEVEL_BUTTON_ICONIZE;
|
style |= wxTOPLEVEL_BUTTON_ICONIZE;
|
||||||
if ( m_windowStyle & wxMAXIMIZE_BOX )
|
if ( m_windowStyle & wxMAXIMIZE_BOX )
|
||||||
|
Reference in New Issue
Block a user