FILE: MSGBLAST.VBX Control Processes Windows Messages from VB

Last reviewed: March 9, 1998
Article ID: Q110104
The information in this article applies to:

- Standard and Professional Editions of Microsoft Visual Basic for

  Windows, versions 2.0 and 3.0

SUMMARY

The Message Blaster (MSGBLAST.VBX) file is a Visual Basic custom control that lets you catch and process Windows messages from Visual Basic. You can obtain Message Blaster from the Microsoft Developer Network (MSDN) CD-ROM disk number 5 or 6. On that MSDN CD-ROM disk, see the "Message Blaster: Processing Messages in Visual Basic" technical article.

MORE INFORMATION

Message Blaster: Processing Messages in Visual Basic

The Microsoft Visual Basic development environment is not based on a message-driven programming model, as is Microsoft Windows. In Microsoft Windows, messages control most everything that happens. Visual Basic, on the other hand, supports a predefined set of events for each object (form or control) that you create. An application written in Visual Basic cannot respond to messages from Microsoft Windows that are not handled directly by a Visual Basic event.

The Message Blaster (MSGBLAST.VBX) is a Visual Basic custom control that addresses this restriction by allowing you to catch and process Windows messages (except WM_CREATE and WM_NCCREATE messages) from Visual Basic.

Message Blaster was created for Visual Basic version 2.0 on April 30, 1993, by:

  • Ed Staffin, Microsoft Consulting Services
  • Kyle Marsh, Microsoft Developer Network Technology Group

You can obtain the Message Blaster from Microsoft Developer Network (MSDN) compact disk (CD) number 5 or 6. Run the "MS Development Library CD 6" icon that is installed in the "MS Development Library" folder in Program Manager. Click the Contents button. Double-click "Technical Articles." Double-click "Visual Basic Articles." Double-click the "Message Blaster: Processing Messages in Visual Basic" article.

You can find MSGBLAST.EXE (size: 131854 bytes) 
                         , a self-extracting file, on these services:
The following file is available for download from the Microsoft Software Library:

 ~ Msgblast.exe (size: 131854 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from
               Online Services

After downloading the file, run it to obtain MSGBLAST.VBX along with a number of example and source code files.

The sample program EX1 uses the Message Blaster control to process WM_MENUINIT and WM_MENUSELECT messages.

How to Join MSDN

The Microsoft Developer Network (MSDN) provides technical information and development toolkits for all developers who write applications for Microsoft operating systems. MSDN members receive a quarterly CD-ROM disk and a bimonthly newsletter.

To join MSDN:

  • In the U.S. and Canada, call (800) 759-5474, 24 hours a day, 7 days a week.
  • In France, call 05 90 59 04 (toll-free).
  • In Germany, call 0130 81 02 1.
  • In the Netherlands, call 06 022 24 80 (toll-free).
  • In the United Kingdom, call 0800 96 02 79 (toll-free).
  • In Japan, call 03 5461-2617.
  • For any other country in Europe, call +31 10 258 88 64.
  • Outside of Europe, the U.S., Canada, or Japan, call (402) 691-0173.

This MSDN information is taken from the "Microsoft Developer Network News" newsletter dated January 1994. This information is subject to change.
Keywords          : APrgOther kbfile
Version           : 2.0 3.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.

Last reviewed: March 9, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.