By Stephen Teilhet
June 2001
Pages: 704
ISBN 10: 0-596-00118-5 |
ISBN 13: 9780596001186
![]()
![]()
![]()
![]()
(Average of 4 Customer Reviews)
Subclassing and the Windows hooking mechanism ("hooks") allow you to manipulate, modify, or even discard messages bound for other objects within the operating system, in the process changing the way in which the system behaves. For both VB 6 and VB.NET developers, this book opens up a wealth of possibilities that ordinarily would be completely unavailable, or at least not easy to implement.
Full Description
- 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.
Register your book | Submit Errata | Author Interview | Examples
Browse within this book
Cover | Table of Contents | Index | Sample Chapter | Colophon
Book details
First Edition: June 2001
ISBN: 0-596-00118-5
Pages: 704
Average Customer Reviews: ![]()
![]()
![]()
![]()
(Based on 4 Reviews)
Featured customer reviews
Not for Dot Net, February 07 2005
Submitted by Anonymous Reader [Respond | View]
I am Robert Plates
There is a means to getting the proper source code that works properly. That is to download the examples.
I sincerely apologize to the author if I have damadged or hurt his feelings. That is why this thread is here.
But for those of us that prefer to code the examples from the book to get a more intimate understanding of the concepts, (I guess us oldtimers), the examples in the book should be codable. If not, some caveats explaining what we need to do to get the printed code to work MUST be nearby the examples so we understand that the examples need translation and give us a means to find out exactly what the translations should be.
I do not know whos fault this misunderstanding is but for those that do not dig further, they will miss out on some good information.
Not for Dot Net, February 07 2005
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.
Subclassing & Hooking with Visual Basic Review, December 19 2002
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.
Subclassing & Hooking with Visual Basic Review, July 14 2002
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.
Subclassing & Hooking with Visual Basic Review, July 24 2001
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...)
Media reviews
I you want to know (in great detail) how to subclass, hook, and superclass Visual Basic, this is the book for you.
--PC Plus, Dec 2001
"Now and then a book comes out that is so brilliant and so powerful that it smashes the limits of VB programming wide open. It almost becomes a bible. Dan Appleman's API Guide was such a book. Really, there hasn't been another book that has seen as much use (for me, anyway). Now, O'Reilly Publishing has put out another book that has a potential to reach this status. The name of the book is 'Hooking & Subclassing with Visual Basic'." --Robert Gelb, http://www.vbRad.com/, July 2001
"all of the basic techniques are revealed and a lot more besides especially recommended for VB and VB.NET developers, but will also prove invaluable for C/C++, Managed C++, C#, and Delphi users." --James Cox, Midwest Book Review, August 2001






