|
-
Nov 20th, 2001, 10:56 AM
#1
Thread Starter
Member
icon in the tray...
I built icons for my app and use API function to place it in the task bar, they looks not so good there as when they are displayed as large icons. Any tips do I need to use?
Thanks.
-
Nov 20th, 2001, 02:02 PM
#2
PowerPoster
in win95/98 tray icons only have 16 colors.. in winME they're 256 colors and smoothed, however. Probably the best way is to create your icons in resolution 16x16x16 ...
-
Nov 20th, 2001, 02:36 PM
#3
Thread Starter
Member
thanks, fox.
I tried to draw icon using 16X16.(by VC++ IDE). and the icon did look better. But it could not be placed on the task bar(system tray)--nothing was displayed there when I used Shell_notifyIcon function as i did for 32X32 icon.
Any ideas? Thanks again.
-
Nov 20th, 2001, 04:07 PM
#4
PowerPoster
i always put my trayicons in pictureboxes.. maybe you called the function wrong? i attached you a module, just add it to your project and in form load/unload call create/remove trayicon.. have fun *smile
-
Nov 20th, 2001, 05:12 PM
#5
Thread Starter
Member
fox, Thank u for ur code. but still have problem...
I have no dificulty in placing a 32X32 icon to picture box and task bar using both ur code and mine. But I cannot make it for icon I built with 16X16 mode. (attached is test icon). Can u try to diaplay it ? perhaps some setting I missed?
Thanks for ur help.
-
Nov 21st, 2001, 03:23 AM
#6
Fanatic Member
Try removing the 32x32 icon from the file, and leave only the 16x16 icon in there (because the file you uploaded here contains 2 icons, the 32x32 version is empty )
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
Nov 21st, 2001, 06:46 AM
#7
PowerPoster
err yes indeed. the file doesn't have to be an icon, can be a bitmap or whatever - but if you use a icon make sure you only have the 16x16 pic in it, else it'll use the big one and stretch it..
note: if you add a icon image in VS that doesnt mean the current one is remove..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|