SpIsMenuItemEnabled

This function returns the state (enabled/disabled) of the specified menu item.

Syntax: enabled = spIsMenuItemEnabled ( hwndMenu, id )

Parameters:
 * hwndMenu – Menu window handle.
 * id – Identity of the menu item.

Returns:
 * True (1) – Menu item is enabled.
 * False (0) – Menu item is disabled.