I'm developing a plugin in C# where I need to modify at runtime the label and the enablement of some menu items.
E.g. when the user clicks on "Logout" menu item I need to gray another item and change the label of this item to "Login".
I used the MENUITEMINFO structure and SetMenuItemInfo(position) method but this doesn't result any change in the UI.
Is there any other Win32 message I need to send in order to refresh the menu items?
Thank you very much
Are you calling DrawMenuBar() after setting the info?
Ahh, that was the missing piece!
Thank you very much, this solved my issue!
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.