I have a single menu bar and need to dim/enable various options at various times. I am puzzled as to the use of the third parameter (Menu Item ID) in this case. It seems to only be necessary for menu items created 'on-the-fly'. I have tried setting it to '0' and to '1' but the attributes of the menu item won't change. I don't recall this parameter being in previous versions.
Can anyone help, example code, etc. ?
See attached code sample.