by Stephen Kent (10 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (12 Votes)
This is a set of 2 classes to make subclassing easier by handling all the hooking/unhooking and message routing involved. The SubClass object exposes a single event (Message) which passes the messages the window receives on to the subclassing application. SubClassEx exposes Message and many other events for messages that are commonly subclassed or intercepted. Both classes allow for over-riding a window message, additional processing, and custom messages.
Side Effects
No known side-effects.
API Declarations4 API calls and lots of constants.
Download SubClass & SubClassEx (12 KB)