tags:

views:

23

answers:

0

How to change icon for TBBUTTONINFO to my own icon?

    TBBUTTONINFO inf;

inf.cbSize=sizeof(inf);
inf.dwMask = TBIF_IMAGE;
inf.iImage = 1;   // <---- currently this number points to IE's icons.

SendMessage(m_hWndToolbar, TB_SETBUTTONINFO, m_buttonID, (LPARAM)(&inf));

Help me :(