Subclassing and Hooking with Visual Basic
Publisher: O'Reilly Media
Final Release Date: June 2001
Pages: 704

Subclassing & Hooking with Visual Basic offers developers a unique way to customize Windows behavior.Windows is a message-based system. Every action you request creates one or more messages to carry out the action. These messages are passed between objects and carry with them information that gives the recipient more detail on how to interpret and act upon the message.With Subclassing and the Windows hooking mechanism ("hooks"), you can manipulate, modify, or even discard messages bound for other objects within the operating system, in the process changing the way the system behaves. What kinds of results can you achieve using the power of subclassing and hooking? Here are just a few of the possibilities:

  • Determine when a window is being activated or deactivated and respond to this change.
  • Display descriptions of menu items as the mouse moves across them.
  • Disallow a user to move or resize a window.
  • Determine where the mouse cursor is and respond accordingly.
  • Determine when the display resolution has been changed.
  • Monitor the system for a low system resource condition.
  • Modify or disallow keystrokes sent to a window or a control.
  • Create an automated testing application.
  • Determine when an application is idle.
Along with this power comes responsibility; Windows is very unforgiving if subclassing and hooking are used incorrectly. Subclassing & Hooking with Visual Basic demonstrates the various techniques for intercepting messages bound for one or more windows or controls: the intercepted message can be left in its original state or modified; afterwards, the message can be sent to its original destination or discarded.For both VB 6 and VB.NET developers, Subclassing & Hooking with Visual Basic opens up a wealth of possibilities that ordinarily would be completely unavailable, or at least not easy to implement.
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillySubclassing and Hooking with Visual Basic
 
3.0

(based on 4 reviews)

Ratings Distribution

  • 5 Stars

     

    (1)

  • 4 Stars

     

    (0)

  • 3 Stars

     

    (1)

  • 2 Stars

     

    (2)

  • 1 Stars

     

    (0)

Reviewed by 4 customers

Sort by

Displaying reviews 1-4

Back to top

(1 of 1 customers found this review helpful)

 
2.0

Not for Dot Net

By Robert Plates

from Undisclosed

Comments about oreilly Subclassing and Hooking with Visual Basic:

Dot Net Stuff simply does not work.

Examples do not compile.

References in example code are no where to be found.

To be fair I already knew how to Subclass in VB6 and was looking for a guide to migrating to VB.NET

Only considered chapters that were specific to dot net. Seems like the concepts are OK but example code does not work. Thus my opinion is that this is mostly words without substance because the author does not prove them with working examples in VB. No mention in the errata about these glaring errors.

If you are like me and have mounds of existing subclassing code for VB6, have mastered the techniques involved, and are looking for some samples to get you started in VB .NET, this book is NOT for you.

Look elsewhere.

 
3.0

Subclassing & Hooking with Visual Basic Review

By Matt

from Undisclosed

Comments about oreilly Subclassing and Hooking with Visual Basic:

I found the book to be very helpful, but it did not explain the C++ code enough for vb6 developers to understand. Also there were no helpful hints or troubleshooting for the C++ code.

(1 of 1 customers found this review helpful)

 
2.0

Subclassing & Hooking with Visual Basic Review

By Joe Hattaway

from Undisclosed

Comments about oreilly Subclassing and Hooking with Visual Basic:

The book said that it covered vb.net. However, the sample that I found for the keyboard hooking are for VB6 and do not work for vb.net . I feel that the authors and publishers owe me samples for vb.net as well as for vb6.

 
5.0

Subclassing & Hooking with Visual Basic Review

By Dan Hagen

from Undisclosed

Comments about oreilly Subclassing and Hooking with Visual Basic:

Good special-purpose book. Contains materials I have not found anywhere else---which is rare of VB books these days. Overall, I rate this book highly, with the following exception:

Pet Peeve: why does the web site's source code download so sloppy? Several of the VB projects are broken and they all unzip onto just ONE big messy directory. Also, there appear to be several versions of the same code (!) with the same exact file name(s) and different creation dates contained within the Zip!!!. Winzip prompts to overwrite many of it's own packaged files as they HAVE THE SAME FILE NAMES!!

It takes just a few minutes to organize the ZIP so it will unzip into several nicely laid out project directories (and not to mention again---but I guess I am---that several of the project files are broken anyway...)

Displaying reviews 1-4

Back to top

 
Buy 2 Get 1 Free Free Shipping Guarantee
Buying Options
Immediate Access - Go Digital what's this?
Print: $49.95