Re: How popup window from icon in system tray?

From: Gary Chanson (gchanson_at_No.Spam.TheWorld.net)
Date: 09/23/04


Date: Thu, 23 Sep 2004 01:17:53 -0400


"Chris Shearer Cooper" <chrisnews@sc3.net> wrote in message
news:41524607$0$58895$75868355@news.frii.net...
> I'm writing an app that is happily displaying itself as an icon in the
> system tray. Now, when certain events happen in the system, my app needs
to
> pop up a little window right above the system tray, telling the user some
> information.
>
> With later versions of Shell.Dll, there are some cool balloon things that
I
> can do. However, this app may be installed on some pretty old systems, so
> I'd rather find a way to do this that didn't depend on updating shell.dll.
>
> I can display a modeless dialog, problem there is that I have no idea
where
> on the screen my little icon is being displayed (from a program point of
> view).

    I think you should be able to find the system tray area of the taskbar
but not the location of individual icons within it. As far as I know, there
is no API (at least in older systems) for this.

-- 
-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
- http://www.mvps.org/ArcaneIncantations/consulting.htm
-gchanson@mvps.org


Relevant Pages

  • Re: Tray Icons and custom shell
    ... messages to SysTray to forwarding WM_COMMAND event to some other parts or windows of the same app). ... PostMessage to send the appropriate command to the tray icon window. ... I've a custom shell and therefore no system tray. ...
    (microsoft.public.windowsxp.embedded)
  • Re: system tray icons lost if explorer shuts down/re-starts
    ... >only be shown by clicking the icon in the systray. ... >the app ensures that it's the only instance running to prevent having ... >when it re-starts the icon is no longer in the system tray but the app is ...
    (microsoft.public.vb.controls)
  • Re: system tray icons lost if explorer shuts down/re-starts
    ... >only be shown by clicking the icon in the systray. ... >the app ensures that it's the only instance running to prevent having ... >when it re-starts the icon is no longer in the system tray but the app is ...
    (microsoft.public.vb.winapi)
  • Re: System Tray Icon Actions
    ... > menu appear when I right click on the icon in the system tray. ... > the icon in the tray and have my app show (it hides when the user clicks ... you should probably add a "Show" menu command (give it ...
    (microsoft.public.vb.general.discussion)
  • Re: system tray icons lost if explorer shuts down/re-starts
    ... >>i have an app that places an icon in the system tray and the main form can ... >>only be shown by clicking the icon in the systray. ... > registered message and tray apps should respond by re-initializing ...
    (microsoft.public.vb.controls)