I need help with adding new bitmaps to the toolbar's image list. I'm trying to use SendMessage(hToolbar, TB_ADDBITMAP, nBitmaps, myAddBitmap), but this doesn't work (or I'm just not utilizing it correctly). Does anyone know how to add new icons to the image list of the toolbar through SendMessage?

Here is what I have managed to do by now:
I am trying to extend the functionality of mIRC with my DLL. I am adding new buttons to mIRC's toolbar to create new shortcuts. Until now, I have managed to add new buttons to the toolbar and have successfully processed their commands, but I have problems with adding new bitmaps to the image list of the toolbar. So, now I may add new buttons, but I may not use any other images exept for the ones that are already built into mIRC.

Thank you in advance