Click here to Skip to main content
15,918,889 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 14-Jul-11 23:18pm
v2

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
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900