VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

How to add new menu items to a form's existing menu at runtime...

Daniel S. Soper  (9 Submissions)   Custom Controls/Forms/Menus   Visual Basic 3.0   Advanced   Wed 3rd February 2021

This code demonstrates how to add new menu items to a form's existing menu at runtime. It can be easily modified to add new menu items to other programs' menus as well.

Inputs
None.

Assumes
This is advanced Visual Basic code. If you modify this code without knowing what you are doing, it may have adverse effects on your system!

Returns
None.

Side Effects
None.

API Declarations
The following API's are used in this program:
GetMenu
GetSubMenu
GetMenuItemCount
InsertMenuItem
SetMenuItemInfo
SetWindowLong
CallWindowProc

Rate How to add new menu items to a form's existing menu at runtime... (3(3 Vote))

Download How to add new menu items to a form's existing menu at runtime...

How to add new menu items to a form's existing menu at runtime... Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters