                                 WinMsg
                                    
                           SoftBit Enterprises
                              Terry Bittner
                           109 N. Garfield Rd.
                          Sterling, VA.  20164
                                    


This VBX gives the VB programmer more advanced functionality by
giving the programmer the ability to receive messages being
passed around by windows. This includes messages being passed to
other programs. This VBX should be copied to the \WINDOWS\SYSTEM
directory.

With this ability, you can change the way other programs function
simply by modifying the parameters being passed to the
destination program.

There are only four properties you need to deal with. They are
Activate, DeActivate, hWnd, and Message.

The Activate control causes the VBX to start firing the event
WinMsg1.MessageFound. More on the MessageFound event later. After
you have added messages to trap and optionally the handle to the
window to trap for, set this property to true.

The DeActivate control disables the VBX. The VBX will stop firing
the MessageFound event.

The hWnd property is used to specify the handle to the window or
control to trap the message specified in the Message property. It
you want to receive a particular message for any window, leave
this property blank. If you want to receive multiple messages for
a window, you only need to set this property once. This property
must to be set before the Message property as when the message
property is set, the VBX will store the value from hWnd and the
Message value to form the association between the hWnd and the
Message.

The Message property is how you specify which windows messages
you want to cause the MessageFound event to be called. To specify
multiple messages, simply set this property multiple times.

The MessageFound event is called any time a message/hwnd
combination is found. The parameters passed to this event are
CurrentMessage, hWnd, wParam, and lParam. These parameters can be
modified and passed back to the VBX. The VBX will pass the
changes along to the destination window.

The CurrentMessage parameter specifies the Message being passed.
This will be equal to the message that was specified in the
message property. This parameter gives this event the ability to
process multiple message types.

The hWnd parameter specifies the handle to the window of which
this message is destined for. To reroute messages to different
windows, change this parameter to the handle to the new window.

The wParam parameter contains a word or integer of data for this
message. The content of this parameter has different meanings
depending on the message type. Reference your windows
documentation for the different definitions.

The lParam parameter contains a double word or long of data for
this message. The content of this parameter has different
meanings depending on the message type. Reference your windows
documentation for the different definitions.

There are also example programs included in the zip file. These
are fully functional and ready for execution. Simply load the
WinMesg.Mak file in VB and your ready to run.

If any problems are encountered with this VBX, please notify me
at the above address. Specify the exact problem and, if possible,
how to reproduce it. You may also send me a message on the
WorldNet bulletin board at (703) 620-8900. Address the message to
'Terry Bittner'. If you find this program useful, please register
it by sending $25 to the above address. Include your Name,
Address, and the location from which you received this program.

If you have any suggestions for VBX's, please let me know. If I
agree to develop the VBX, you will receive a free copy.

Softbit Enterprises specifically disclaims all warranties,
expressed or implied, including but not limited to implied
warranties of merchantability and fitness for a particular
purpose.  This program is protected by the copyright laws of the
United States.