I want to make my button to appear my own icon. But somehow, it still refers to IE6's icons. Help me... Here's the the code I am currently working on:
HINSTANCE module = _AtlBaseModule.GetResourceInstance();
HICON myicon = LoadIcon(module, MAKEINTRESOURCE(IDI_ICON1));
HIMAGELIST hImageList = ImageList_Create(16,16, ILC_COLOR32, 1, 0);
int iImageIndex = ImageList_AddIcon(hImageList, myicon);
TBBUTTONINFO inf;
inf.cbSize=sizeof(inf);
inf.dwMask = TBIF_IMAGE;
inf.iImage = iImageIndex;
SendMessage(tmp, TB_SETBUTTONINFO, m_buttonID, (LPARAM)(&inf));