FILE: SYSTRAY.EXE:ActiveX Control Adds Icons to Status Area

ID: Q177095


The information in this article applies to:
  • Microsoft Visual Basic Professional and Enterprise Editions for Windows, version 5.0


SUMMARY

Systray.exE is an ActiveX control written in Visual Basic that demonstrates how to add icons to the status area of the taskbar and also processes callback messages for taskbar icons. Using the new Visual Basic 5.0 AddressOf function, the callback messages are received and processed in a module that is registered as a callback function in a Win32 API call.

The Visual Basic project for this control can be downloaded from the Visual Basic Owner's site at the following URL:

Only registered users of Visual Basic can download this file.


MORE INFORMATION

In Visual Basic version 4.0, manipulating the status area of the taskbar required the use a Visual Basic intrinsic control to serve as a Window that reacts to the callback message. Using an intrinsic control in this fashion was a way to work around the inability version 4.0 to work with pointers. This method is documented in the following article in the Microsoft Knowledge Base:

Q162613 HOWTO: Manipulate Icons in the System Tray with Visual Basic
Visual Basic 5.0, however, has the ability to work with pointers, so you don't need to use an intrinsic control to add icons to the status area of the taskbar. Additionally, the control contains properties and mouse events, such as MouseMove, MouseDown, MouseUp, MouseDblClick, to make the control more useful by specifying when the icon appears, where the ToolTip text will be, and the icon image.

© Microsoft Corporation 1999, All Rights Reserved.
Contributions by Arsenio Locsin, Microsoft Corporation

Additional query words: system tray

Keywords : kbVBp500
Version : WINDOWS:5.0
Platform : WINDOWS
Issue type :


Last Reviewed: November 20, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.