I've got an application that puts an Icon in the System Tray using Delphi 2.0. I'd like to be able to find out what the bounds of my TrayIcon are in screen coordinates. (Bounds being defined as the hittable area of my TrayIcon
with a mouse click/move/doubleclick event).
I've tried HitTesting the TrayIcon window with Mouse Messages, and this seems to work, but also ends up sending these mouse messages to the adjacent TrayIcon's and causing them to respond to the Mouse Messages. This isn't good, because I need to ensure that other TrayIcon's aren't affected by the HitTest.
Does anyone know of a way for me to exactly find out the bounds of a TrayIcon, without adversely affecting other TrayIcon's ???