Update AUI frame capture when it changes.
Set the updated label in wxAuiManager::Update() to ensure the labels stored two places are always in sync. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2546,6 +2546,9 @@ void wxAuiManager::Update()
|
||||
style |= wxRESIZE_BORDER;
|
||||
p.frame->SetWindowStyleFlag(style);
|
||||
|
||||
if (p.frame->GetLabel() != p.caption)
|
||||
p.frame->SetLabel(p.caption);
|
||||
|
||||
if (p.frame->IsShown() != p.IsShown())
|
||||
p.frame->Show(p.IsShown());
|
||||
}
|
||||
|
Reference in New Issue
Block a user