views:

486

answers:

2

I'm trying adding my own toolbar icon to Internet Explorer but am unsure what size it should be.

Using Internet Explorer 7, icons that are 20x20 pixels seem to get stretched. Measuring shows they should be at least 24x24. Anyone have a definitive reference?


Alternatively, where does Internet Explorer get its existing toolbar icons from - I could measure it then! I presume its one of the system DLLs, but which one?

Also see: How big should a Firefox toolbar button be?

A: 

I assume we're talking about favicons? Wikipedia defines them as 16x16 in the first sentence.

The top four Google hits all indicate 16x16.

Chase Seibert
No, I'm talking about toolbar icons. As added by a plugin.
Mat
+1  A: 

Well, by a process of trial and error, it appears that icons sized 24x24 pixels are not rescaled. At least, that is the case with Internet Explorer 7.0.6001.18000. Would still like find a definitive reference for IE7 and ideally other versions too.


Another way to confirm it:

int x, y;
HIMAGELIST hImageList = (HIMAGELIST) SendMessage(m_hWndToolbar, TB_GETIMAGELIST, 0, 0);
ImageList_GetIconSize(hImageList, &x, &y);
ATLTRACE("Image size %ux%u", x, y);

Output:

Image list 24x24
Mat
you should accept your own answer here
Colin Pickard