in reply to How to add icon to status area via Win32::API?

I assume you want to add your program to the system tray (the small icons to the right in the task bar), is that right?

In that case, download Win32::GUI and look at Win32::GUI::NotifyIcon.

If what you really want is for your program to show up in the regular task bar, create a Win32::GUI window without a parent window, that will make it appear in the task bar.

http://sourceforge.net/projects/perl-win32-gui

/J

  • Comment on Re: How to add icon to status area via Win32::API?

Replies are listed 'Best First'.
Re: Re: How to add icon to status area via Win32::API?
by henry100 (Initiate) on Aug 20, 2001 at 10:30 UTC
    That's right. I understand Win32::GUI is work. But I use TK. So, it seems I need to use API? Right? But ,THX
      Not neccessarily. Since what you want to implement using Win32::API (with great difficulty I guess) is already present in Win32::GUI, why not use it? The only downside I can see is the overhead.

      It is most likely possible to combine the main event loop in Tk with the one in Win32::GUI; Just call Win32::GUI::DoEvents() as often as possible from within Tk's idle event loop (whatever it is called, I don't know Tk that well).

      /J