I assume this is an MFC toolbar

As long as you have a 256-colour icon available for that resource it should work, it did for me (although this was a while ago before I stopped using MFC)