home *** CD-ROM | disk | FTP | other *** search
- This sample program demonstrates how to add an icon to the system tray
- of Win 95's taskbar and respond to various mouse events when the user
- moves the cursor over the icon.
-
- Specifically, the program adds an Exit icon which you can just double
- click to shut down your computer. Right clicking on the icon will
- display a menu from which you can choose to shut down, reboot, or go
- into MS-DOS mode, just the same as if you click Shut Down from the
- Start button. Kinda of a useful little utility actually. It only
- saves a few mouse clicks and movements, but it's amazing how much
- easier it is.
-
- Naturally, to run the program you need Windows 95 and VB 4.0. You also
- need the MSGHOO32.OCX custom control (included in the zip file). Copy
- the control to your Windows\System folder. From VB, right click
- anywhere on the Toolbox and select Custom Controls. Click the Browse
- button to add the control to the Available Controls. This will
- register the control so it can be used in your programs. After you've
- done that, you can open the project in VB.
-
- This program makes use of 32 bit API calls that are exclusive to Win95;
- therefore, it will NOT work with any 16 bit version of VB, even if you
- have Windows 95. It should work with Windows NT 3.51 (provided you have
- the new shell), but it hasn't been tested with NT.
-
- If you do find this to be a more convenient way of exiting Windows, do
- what I did and place a shortcut to the executable in your Startup
- folder.
-
- Any questions can be sent to VDG Mike on America Online. Hope you find
- this useful.
-
- Mike Davis
-
- Visual Developers Group, Inc.
- vdgmike@aol.com
-