VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

SubClassing to enable response to menus made at runtime

Nick Smith  (8 Submissions)   Custom Controls/Forms/Menus   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

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 Declarations
see .bas file

Rate SubClassing to enable response to menus made at runtime (4(4 Vote))
SubClassing to enable response to menus made at runtime.bas

SubClassing to enable response to menus made at runtime Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters