SysTray - System Tray Demo
Copyright (c) 1997 SoftCircuits Programming (R)
Redistributed by Permission.

This program demonstrates how to display an icon on the system taskbar
(tray notification area) under Windows 95 and later, or Windows NT 4.0 or
later. The program first determines if it is running under one of these
operating systems and terminates if it is not.

Although you do not need a subclassing control to place an icon on the
system taskbar, you will need one to respond to tray notification
messages. This program uses Subclass.ocx. You must first register this
control in order to use this demo program. See Subclass.txt for further
details.

Note, it is possible to implement a system tray icon without a
subclassing control. Because Windows allows you to specify the value of
the callback message, you can specify a message that Visual Basic
already supports. For example, you can specify the WM_LBUTTONDOWN
message and place code in the MouseDown event. However, this technique
has some limitations. Visual Basic interprets the information that
accompanies the WM_LBUTTONDOWN message as mouse coordinates and,
depending on the form's scale mode, may modify data that provides
information about the system tray. Also, this would cause a conflict if
you also needed to intercept real MouseDown events.

The SysTray example is a simple one. It has 4 possible icons each
indicating a particular level of memory usage. This icon is updated
each time the timer control fires. If the user double-clicks the icon
or selects Open from the context-sensitive menu, the main form is
displayed which contains more detailed information about the current
memory usage.

This program may be distributed on the condition that it is
distributed in full and unchanged, and that no fee is charged for
such distribution with the exception of reasonable shipping and media
charges. In addition, the code in this program may be incorporated
into your own programs and the resulting programs may be distributed
without payment of royalties.

This example program was provided by:
 SoftCircuits Programming
 http://www.softcircuits.com
 P.O. Box 16262
 Irvine, CA 92623
