I know the best way to enable/disable a button from CMFCToolBar is to use
int b_id = m_ToolBar.CommandToIndex(ID_BUTTON);
m_ToolBar.SetButtonStyle(b_id,TBBS_DISABLED);
but that does not seem to work when the toolbar is embedded inside a CDockable Pane I have a derived class for CMFCToolBar which is required to enable the buttons in a pane but nothing I have tried will disable them.