Publisher: O'Reilly Media Released: 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. |
- Title:
- Subclassing and Hooking with Visual Basic
- By:
- Stephen Teilhet
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Safari Books Online
- Print:
- June 2001
- Pages:
- 704
- Print ISBN:
- 978-0-596-00118-6
- | ISBN 10:
- 0-596-00118-5
|
-
Stephen Teilhet Stephen Teilhet earned a degree in electrical engineering but soon afterwards began writing software for the Windows platform. For the last eight years, he has worked for several consulting firms on a wide range of projects, specializing in Visual Basic, Visual C++, MTS, COM, MSMQ, and SQL Server. Stephen currently works for Compuware Numega Labs in Nashua, New Hampshire, where he is immersed in the Microsoft .NET technologies. View Stephen Teilhet's full profile page. |
Colophon Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animals on the cover of Subclassing and Hooking with Visual Basic are common brushtail possums (Trichosurus vulpecula). These small Australian marsupials are about one-sixth the size of a housecat. They have big ears, long whiskers, and a pointy snout tipped with a pink nose; their fur color ranges from light gray to dark brown. A brushtail possum pregnancy lasts only about 17 days, but, after birth, the single infant spends up to 5 months in his mother's pouch and then is dependent on mom for another 1 to 2 months longer. Ordinarily, brushtail possums are tree-dwellers; their long, prehensile tails and opposable digits are ideal for grasping tree branches. They dine on leaves, fruits, and flowers and were once common all over Australia. But now they're largely absent from the interior of the country, and they can too often be found living in the eaves and attics of suburban houses, raiding trash cans for their dinners. Introduced to New Zealand in 1840, they're a major pest species in that country as well, and population control efforts include attempts to popularize possum-fur garments. Leanne Soylemez and Matt Hutchinson were the production editors forSubclassing and Hooking with Visual Basic. Leanne Soylemez was the proofreader. Audrey Doyle was the copyeditor. Linley Dolby provided quality control. Johnna VanHoose Dinse and Brenda Miller wrote the index. Ellie Volckhausen designed the cover of this book, based on a series design by Edie Freedman. The cover image is from The Illustrated Natural History: Mammalia. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font. David Futato designed the interior layout based on a series design by Nancy Priest. Anne-Marie Vaduva converted the files from Microsoft Word to FrameMaker 5.5.6 using tools created by Mike Sierra. The text and heading fonts are ITC Garamond Light and Garamond Book; the code font is Constant Willison. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. This colophon was written by Leanne Soylemez. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By Allison Randal, Dan Sugalski, Leopold Tötsch
June 2003
By Bill Hamilton
September 2003
By Brian Lesser, Giacomo Guilizzoni, Joey Lott, Robert Reinhardt, Justin Watkins
February 2005
Ebook: $39.99
Print & Ebook: $54.99
Print: $49.99
|
Customer Reviews
2/7/2005 (1 of 1 customers found this review helpful) By Robert Plates from Undisclosed 12/19/2002 3.0Subclassing & Hooking with Visual Basic Review 7/14/2002 (1 of 1 customers found this review helpful) 2.0Subclassing & Hooking with Visual Basic Review By Joe Hattaway from Undisclosed 7/24/2001 5.0Subclassing & Hooking with Visual Basic Review By Dan Hagen from Undisclosed
|
|
|