[BUGFIX] Issue# 2798613 - Modified updateMenuItemCommand routine to keep menu item's current uFlags

- When ModifyMenu was being called it only passed MF_BYCOMMAND which
      would reset the current items uFlags and breaking the plugin's
      funcItems->init2check setting.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@486 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Thell Fowler 2009-05-30 22:26:51 +00:00
parent 1f33dd89f1
commit 3a706fd875

View File

@ -529,6 +529,8 @@ void Accelerator::updateFullMenu() {
void Accelerator::updateMenuItemByCommand(CommandShortcut csc) {
int cmdID = (int)csc.getID();
MENUITEMINFO cmdMII;
::GetMenuItemInfo(_hAccelMenu, cmdID, MF_BYCOMMAND, &cmdMII);
::ModifyMenu(_hAccelMenu, cmdID, MF_BYCOMMAND, cmdID, csc.toMenuItemString().c_str());
}