I haven't seen a lot of examples on this except for Iczelion's although he does in depth explaining and identifies some problems his example was lacking.
In this example I will show you through way of comments the way I would use a Tray Icon
I made it as simple as possible so those that are beginning can simply copy/paste and make adjustments
There should be no errors as I tested all the functions.
Let me know if you find one or if you need help
even if you know how to use tray icons could you please download it and test it or maybe correct me someplace.
My example is attached :U (I hope this is the right place to post this)
[attachment deleted by admin]
It works correctly on Athlon 1700+ WinXPsp2
Thanks for example. It also explains CreatePopupMenu which I need :)