[BUGFIX] pt.2 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. - applied cmdMII info to the ModifyMenu call. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@487 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
3a706fd875
commit
b1a0d797e8
@ -531,7 +531,7 @@ 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());
|
||||
::ModifyMenu(_hAccelMenu, cmdID, MF_BYCOMMAND|cmdMII.fMask, cmdID, csc.toMenuItemString().c_str());
|
||||
}
|
||||
|
||||
recordedMacroStep::recordedMacroStep(int iMessage, long wParam, long lParam)
|
||||
|
Loading…
Reference in New Issue
Block a user