SAMPLE: Processing Nonclient Messages with Msg Blaster Control

Last reviewed: February 15, 1996
Article ID: Q103225
The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) for Windows version 3.1

Smallcap: Uses Message Blaster Control to Process Nonclient Messages

Smallcap is a sample application created by Randall Kern and Jim Cash that accompanies the "Message Blaster: Processing Messages in Visual Basic" technical article on the Microsoft(R) Developer Network CD.

The Microsoft Visual Basic(TM) 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(TM) 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 Smallcap sample application shows how you can process WM_NC* (nonclient) messages to create captions.

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

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

  • Microsoft Download Service (MSDL)

          Dial (206) 936-6735 to connect to MSDL
          Download SMALLCAP.EXE (size: 42372 bytes) 
    
  • Internet (anonymous FTP)

          ftp ftp.microsoft.com
          Change to the \SOFTLIB\MSLFILES directory
          Get SMALLCAP.EXE (size: 42372 bytes) 
    


Additional reference words: 3.10 softlib SMALLCAP.EXE
KBCategory: kbprg kbfile
KBSubcategory: UsrMsg


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: February 15, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.