Tools Links Login

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

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.

Original Author: Daniel S. Soper

Inputs

None.

Assumptions

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

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 70 times

Categories

Visual Basic 6

Attachments

CODE_UPLOAD138591172001.zip
Posted: 9/3/2020 3:45:00 PM
Size: 4,454 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.