by Nick Smith (8 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(4 Votes)
When making menus with Win32 API functions, have you ever wondered how to call functions when the user clicks on a menu entry? This code shows you how to solve that problem using subclassing, in very few lines of code :) Please rate this.
Assumes
Dont click the stop button on the Visual Basic window, you must exit using the program, or else the windows procedure wont be handed back to the original window, causing an illegal operation error.
API Declarationssee .bas file
Upload