void wxGISToolBar::MoveCommandRight(size_t nIndex) { wxGISCommandBar::MoveCommandRight(nIndex); wxAuiToolBar::Clear(); for(size_t i = 0; i < m_CommandArray.size(); i++) ReAddCommand(m_CommandArray[i]); wxAuiToolBar::Realize(); }
void wxGISToolBar::MoveCommandRight(size_t nIndex) { wxGISCommandBar::MoveCommandRight(nIndex); wxAuiToolBar::Clear(); //delete Control for(std::map<size_t, IToolBarControl*>::iterator IT = m_RemControlMap.begin(); IT != m_RemControlMap.end(); ++IT) wxDELETE(IT->second); for(size_t i = 0; i < m_CommandArray.size(); ++i) ReAddCommand(m_CommandArray[i]); wxAuiToolBar::Realize(); }