[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:
parent
1f33dd89f1
commit
3a706fd875
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user