Prev Next

ChangeMenu info  Overview  Group

The ChangeMenu function has been replaced by the following specialized functions, which are available on both Windows NT and Windows 95:

Function

Description

AppendMenu

Appends a menu item to the end of a menu.

InsertMenu

Inserts a menu item into a menu.

ModifyMenu

Modifies a menu item in a menu.

RemoveMenu

Removes a menu item from a menu; if it is a pop-up item, the corresponding pop-up menu is not destroyed.

Windows 95:
Instead of using AppendMenu, InsertMenu, and ModifyMenu, applications written exclusively for Window 95 should use the following new functions, which are available only on Windows 95.

Function

Description

GetMenuItemInfo

Gets information about a menu item.

InsertMenuItem

Inserts a new menu item at the specified position in a menu bar or pop-up menu.

SetMenuItemInfo

Changes information about a menu item.

Applications written for versions earlier than Windows 3.0 can continue to call ChangeMenu. Applications written for Windows versions 3.0 and later should call these new functions.