Link to home
Start Free TrialLog in
Avatar of Xyptilon2
Xyptilon2Flag for China

asked on

hWnd destroyed by TTrayIcon

It seems TTrayIcon destroys the hWnd, or the hWnd is altered or not set correctly.

Code in the TTrayIcon onDblClickEvent works fine (Form1->Show(); Application->Restore();)
However, when running the same code from an associated TPopupmenuItem, it doesn't work and doubleclickcing on the TTrayIcon also doesnt work anymore.

Creating a custom component to add OnBalloonClick functionatlity also doesnt work, which
I believe is for the same reason. Pointer to another open question:
https://www.experts-exchange.com/questions/23418340/TTrayIcon-onBalloonClick.html

Anybody?
ASKER CERTIFIED SOLUTION
Avatar of Xyptilon2
Xyptilon2
Flag of China image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial