by Steve Weller (3 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (8 Votes)
Subclassing, the interception of Windows messages, allows you more control over VB than ever before. Now you can display messages in the status bar describing a menu that is selected, or force a form to have a maximum and minimum size (like the VB main window). This code shows the benefits of subclassing.
Inputs
Just add the two modules and class to your project and code away!
Side Effects
Subclassing is potentially dangerous. Read the text file accompanying this code for more details.
Download Subclassing (11 KB)