SAMPLE: Processing WM_MENUINIT/WM_MENUSELECT w/ Msg Blstr Ctrl
PSS ID Number: Q103224
Article last modified on 08-29-1994

3.10

WINDOWS


----------------------------------------------------------------------
The information in this article applies to:

 - Microsoft Windows Software Development Kit (SDK) for Windows
   version 3.1
----------------------------------------------------------------------

EX1: Uses Message Blaster Control to Process WM_MENUINIT and
WM_MENUSELECT Messages

EX1 is a companion sample application for the "Message Blaster:
Processing Messages in Visual Basic" technical article on the
Microsoft Developer Network CD.

The Microsoft Visual Basic development environment is not based on
a message-driven programming model. Instead, Visual Basic 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 is a Visual Basic control that
addresses this restriction by allowing you to catch and process
Windows messages from Visual Basic.

You can use the Message Blaster control to process any message from
Windows except for WM_CREATE and WM_NCCREATE messages. The EX1 sample
application shows how you can process WM_MENUINIT and WM_MENUSELECT
messages, to change status bar text as the user moves through menu
items.

EX1 was built and tested under Microsoft Windows version 3.1 and
Microsoft Visual Basic version 2.0.

Download EX1.EXE, a self-extracting file, from the
Microsoft Software Library (MSL) on the following services:

 - CompuServe
      GO MSL
      Search for EX1.EXE
      Display results and download

 - Microsoft Download Service (MSDL)
      Dial (206) 936-6735 to connect to MSDL
      Download EX1.EXE

 - Internet (anonymous FTP)
      ftp ftp.microsoft.com
      Change to the \softlib\mslfiles directory
      Get EX1.EXE

Additional reference words:
KBCategory: Prg
KBSubcategory: UsrMsg

=============================================================================

Copyright Microsoft Corporation 1994.
