The TB_GETBITMAP message retrieves the index of the bitmap associated with a button in a toolbar.
TB_GETBITMAP wParam = (WPARAM) idButton; lParam = 0;
If successful, the message returns the index of the bitmap. If unsuccessful, it returns zero.