Call RecreateControls() if relevant window style flag was toggled

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2008-10-05 09:45:10 +00:00
parent 72eb964f27
commit c3e57ac4ac

View File

@@ -505,9 +505,18 @@ void wxPropertyGridManager::Thaw()
void wxPropertyGridManager::SetWindowStyleFlag( long style )
{
int oldWindowStyle = GetWindowStyleFlag();
wxWindow::SetWindowStyleFlag( style );
m_pPropGrid->SetWindowStyleFlag( (m_pPropGrid->GetWindowStyleFlag()&~(wxPG_MAN_PASS_FLAGS_MASK)) |
(style&wxPG_MAN_PASS_FLAGS_MASK) );
// Need to re-position windows?
if ( (oldWindowStyle & (wxPG_TOOLBAR|wxPG_DESCRIPTION)) !=
(style & (wxPG_TOOLBAR|wxPG_DESCRIPTION)) )
{
RecreateControls();
}
}
// -----------------------------------------------------------------------