DOCUMENT:Q177095 24-NOV-1997 [vbwin] TITLE :FILE: SYSTRAY.EXE: ActiveX Control Adds Icons to Status Area PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:5.0 OPER/SYS:WINDOWS KEYWORDS:vb5all ====================================================================== --------------------------------------------------------------------- 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: - http://premium.microsoft.com/download/vbasic/systray.exe. Only registered users of Visual Basic can access this site. 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: ARTICLE-ID: Q162613 TITLE : 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. Additional query words: system tray (c) Microsoft Corporation 1997, All Rights Reserved. Contributions by Arsenio Locsin, Microsoft Corporation ====================================================================== Keywords : vb5all Version : WINDOWS:5.0 Platform : WINDOWS Solution Type : kbfile ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1997.