It works to hide wxAuiToolBar/wxTreeCtrl, but the wxAuinotebook's caption still exists.
Anyone know how to hide caption in wxAuiNotebook?
NavToolBar: wxAuiToolBar
NavMenu: wxTreeCtrl
ContentPane: wxAuiNotebook
- Code: Select all
if ( this->IsFullScreen() ) // switch to window mode
{
this->m_mgr.GetPane(wxT("NavToolBar")).Show(true);
this->m_mgr.GetPane(wxT("NavMenu")).Show(true);
this->m_mgr.GetPane(wxT("ContentPane")).CaptionVisible(true);
}
else // switch to full screen mode
{
this->m_mgr.GetPane(wxT("NavToolBar")).Show(false);
this->m_mgr.GetPane(wxT("NavMenu")).Show(false);
this->m_mgr.GetPane(wxT("ContentPane")).CaptionVisible(false);
}
this->ShowFullScreen(!this->IsFullScreen(), wxFULLSCREEN_ALL);
this->m_mgr.Update();