Internet Explorer工具栏图标应该多大? [英] How big should an Internet Explorer toolbar icon be?
问题描述
我试图将自己的工具栏图标添加到Internet Explorer,但不确定它应该是多少。
在TechNet上设计Internet Explorer的工具栏图标文章指示20x20和16x16像素。 rel =nofollow noreferrer> 1 , 2 )在 Internet Explorer工具栏(Deskband)教程中< Code Project 暗示22x22和16x16像素。使用Internet Explorer 7时,20x20像素的图标看起来会延伸。测量显示他们应该至少24x24。任何人都有一个明确的参考?
或者,Internet Explorer从哪里获取其现有的工具栏图标 - 我可以测量它!我推测它是其中一个系统DLL,但是哪一个?
另请参阅: Firefox工具栏按钮应该有多大?
好吧,通过试验和错误的过程,看起来像大小为24x24像素的图标不会重新调整大小。至少,Internet Explorer 7.0.6001.18000就是这种情况。还需要为IE7找到一个明确的参考,最好是其他版本。
确认它的另一种方法:
int x,y;
HIMAGELIST hImageList =(HIMAGELIST)SendMessage(m_hWndToolbar,TB_GETIMAGELIST,0,0);
ImageList_GetIconSize(hImageList,& x,& y);
ATLTRACE(图像大小%ux%u,x,y);
输出:
图片列表24x24
I'm trying adding my own toolbar icon to Internet Explorer but am unsure what size it should be.
The Designing Toolbar Icons for Internet Explorer articles on TechNet indicates 20x20 and 16x16 pixels.
Messages (1, 2) in the Internet Explorer Toolbar (Deskband) Tutorial at Code Project imply 22x22 and 16x16 pixels.
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?
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
这篇关于Internet Explorer工具栏图标应该多大?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!