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:
http://www.experts-exchange.com/Programming/Editors_IDEs/C_CPP_CS/CPP_Builder/Q_23418340.htmlAnybody?
Start Free Trial