Chapter 4. Subclassing

This chapter takes you deeper into the subject of subclassing, starting off with a discussion of the AddressOf operator. A fair amount of discussion is given to this operator because it plays a pivotal role in using Visual Basic (VB) to subclass windows. Presented next will be the two types of subclassing -- instance and global subclassing. Their similarities, differences, and applications are discussed at length. Code examples will be presented for both types of subclassing. These examples are meant to be for illustration only; such things as error handling code will be omitted for clarity.

As we progress through this chapter I will be placing the key points and rules of subclassing in bold type. These points and rules will be summarized at the conclusion of the chapter.

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.