系统托盘的图标大小. [英] icon size of system tray..

查看:134
本文介绍了系统托盘的图标大小.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

frnd ...

我正在使用通知图标作为系统托盘中的显示图标.我使用48 * 48图标大小,但在系统任务栏中显示小尺寸
我想在系统任务栏中显示48 * 48图标....



请帮助我

hi frnd...

i m using notify icon for display icon in system tray. i m using 48 * 48 icon size but it display small size in system tray
i want to display 48*48 icon in system tray ....



pls help me

推荐答案

Windows将调整图标的大小以适合用户任务栏,而不是相反.用户可以根据自己的喜好设置任务栏的大小,程序员不应该尝试使用OS用户设置来适应一个应用程序.

希望这对您有帮助
Windows will size the icon to fit the users taskbar, not the other way round. Users can set the size of the taskbar as they see fit, and a programmer shouldn''t try and play with OS user settings to suit one application.

Hope this helps


我认为这是不可能的.应用程序无法控制此操作.想象一下,如果应用程序选择使用哪个图标,那么系统托盘中会有什么混乱.而且它也不依赖于任务栏的大小.
现在,关于链接的一些内容使我相信我所说的一切:

http://msdn.microsoft.com/en-us/library/bb773352 (v = vs.85).aspx [
http://msdn.microsoft.com/en-us/library/aa511448.aspx [ ^ ]
其中还显示使用具有16x16、20x20和24x24像素版本的图标.较大的版本用于高dpi显示模式."

看起来这是一些系统设置,或者只是系统以某种方式评估要使用的图标.
I think this isn''t possible. Application isn''t able to control this. Imagine what a mess would be in system tray if application would choose which icon to use. And it doesn''t depend on taskbar size too.
Now a little bit about links which made me believe in all I said:

http://msdn.microsoft.com/en-us/library/bb773352(v=vs.85).aspx[^]

It is about structure in Win API which defines icon in system tray:
"If only a 16x16 pixel icon is provided, it is scaled to a larger size in a system set to a high dpi value. This can lead to an unattractive result. It is recommended that you provide both a 16x16 pixel icon and a 32x32 icon in your resource file."

And http://msdn.microsoft.com/en-us/library/aa511448.aspx[^]
Which also says "Use an icon with 16x16, 20x20, and 24x24 pixel versions. The larger versions are used in high-dpi display modes."

It looks like this is some system settings or just system somehow evaluates which icon to use.


这篇关于系统托盘的图标大小.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆