when i run it, i get an error with an assertion on the VERIFY
line:


Code:
void CToolBar::_GetButton(int nIndex, TBBUTTON* pButton) const
{
     CToolBar* pBar = (CToolBar*)this;
     VERIFY(pBar->DefWindowProc(TB_GETBUTTON, nIndex, (LPARAM)pButton));
     // TB_STATE_ENABLED == TBBS_DISABLED so inver it
     pButton->fsState ^= TBSTATE_ENABLED;
}
this is in the bartool.cpp file included in MFC, this is not my file
obviously