Конференция "KOL" » TrayIcon PopupEx
 
  • Jon © (07.12.07 20:58) [0]
    I have a hidden applet that uses a trayicon with a menu.
    If I PopupEx the menu, the applet becomes visible in the taskbar.
    The applet is then hidden again when menu disappears.
    How can I use PopupEx without showing the applet in the taskbar?
  • Дмитрий К © (08.12.07 15:25) [1]
    Use Popup. To avoid the bug when menu doesn't disappear add SetForegroundWindow(Menu.Owner.Handle) before Menu.Popup
  • Jon © (08.12.07 15:29) [2]
    Thank you. That was the solution that I used.

     SetForegroundWindow(Applet.Handle);
     GetCursorPos(Point);
     TrayMenu.Popup(Point.X,Point.Y);
     PostMessage(Applet.Handle,WM_NULL,0,0);


    But should PopupEx never be used?
Есть новые Нет новых   [134431   +10][b:0][p:0.001]