git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29868
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxToolBar::DoEnableTool(wxToolBarToolBase *t, bool enable)
{
void wxToolBar::DoEnableTool(wxToolBarToolBase *t, bool enable)
{
- if (!IsShown())
- return ;
-
((wxToolBarTool*)t)->DoEnable( enable ) ;
}
void wxToolBar::DoToggleTool(wxToolBarToolBase *t, bool toggle)
{
((wxToolBarTool*)t)->DoEnable( enable ) ;
}
void wxToolBar::DoToggleTool(wxToolBarToolBase *t, bool toggle)
{
- if (!IsShown())
- return ;
-
wxToolBarTool *tool = (wxToolBarTool *)t;
if ( tool->IsButton() )
{
wxToolBarTool *tool = (wxToolBarTool *)t;
if ( tool->IsButton() )
{