But it's not just a case of creating the icon. You also need to set up a
hook for the mouse events (ok, so it's just a defined constant in the
WM_USER range), create a popup menu for the icon, handle the additional
WM_COMMAND and WM_USER events, ... I think the point Owen was trying to
make was that he wanted some sample code for a systray app that was easier
to understand than the assembler code of freenet.exe.
Granted, the API calls are always going to be the same irrespective of the
programming language - but you still need to code the WndProc - so you still
need to be able to understand the _structure_ of the WndProc
----- Original Message -----
From: "Sebastian Sp�th" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Freenet" <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 9:35 AM
Subject: Re:[freenet-devl] systray icon
> Owen Williams <[EMAIL PROTECTED]> wrote on 26.4.2001 00:49:47:
> >
> >I was wondering if someone knew an easier way of creating a system tray
> >icon than the assembly (!!) implementation Freenet has. I need a tray
> >icon for my own program (FreeSearch) because no one seems to be willing
> >to deal with two windows on their desktops. I say "minimize!" but no
> >one listens. I didn't even know that napster minimizes to a tray icon,
> >and people expect taht behavior as default.
>
> The point that it is written in Assembler has nothing to do with the way
the icon is created, it is merely a
> series of calls to the standard Windows API which would work exactly th
esame way when using C.
>
> Sebastian
_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://lists.freenetproject.org/mailman/listinfo/devl