I am attempting to temporarily disable a toolbar button from within my application.
I tried this...

CToolBarCtrl& toolbar = m_wndToolBar.GetToolBarCtrl();
toolbar.EnableButton(ID_NEXT, FALSE);



However, it only disables the button while still within the scope of that function.
As soon as that function returns the button is enabled again.
I am sure that I am missing something simple, but I can't figure out what exactly.
What do I need to do to force the button to be disabled until I actually want
it enabled again?
Please help!!!

Thanks,
Kyle