AnnoEnableMenuItem

Usage                  Boolean AnnoEnableMenuItem (Menu As LONGLONG, MenuItem As Long, Enabled As Boolean)

Description         This method sets the state of the menu item in the user defined pop-up menu.

Parameters         Menu                   LONGLONG    Custom pop-up menu

                             MenuItem           Long                   Index of the menu item in the menu. This is a zero based integer.

                             Enabled              Boolean              If this parameter is TRUE, the menu item will be enabled, otherwise disabled.

Return value      TRUE on success, otherwise FALSE. If any error occurs, you can call the GetLastAnnoError method for the last error code.

Programming Notes        See AnnoIsMenuItemEnabled for more information.