Chapter 3. The Basics of Subclassing and Hooks

This chapter will introduce how subclassing and hooks operate. I will use bits and pieces of code, instead of complete examples, so that we can focus on the basics of hooking and subclassing. The finer details of the code will be covered in the remainder of this book.

This chapter is broken up into two sections. The first section deals with subclassing and how it works, as well as what it is useful for. The second section deals with the hooking mechanism in a similar fashion. Of the two languages I use, I will focus as much as possible on Visual Basic (VB) and use Visual C++ only when VB has reached its limits.

Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.