Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add contextual menu for file encoding in status bar #5523

Closed
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Prev

Add contextual menu for file encoding in status bar

  • Loading branch information...
vlakoff committed Apr 13, 2019
commit 9b5a39b58f7844e62e46d4952155c29964c7c6f3
@@ -449,6 +449,13 @@ BOOL Notepad_plus::notify(SCNotification *notification)
return TRUE;
TrackPopupMenu(hEolFormatMenu, 0, p.x, p.y, 0, _pPublicInterface->getHSelf(), NULL);
}
else if (lpnm->dwItemSpec == DWORD(STATUSBAR_UNICODE_TYPE))
{
POINT p;
::GetCursorPos(&p);
HMENU hEncodingMenu = ::GetSubMenu(_mainMenuHandle, MENUINDEX_FORMAT);
TrackPopupMenu(hEncodingMenu, 0, p.x, p.y, 0, _pPublicInterface->getHSelf(), NULL);
}
}
break;
}
@@ -489,6 +496,13 @@ BOOL Notepad_plus::notify(SCNotification *notification)
return TRUE;
TrackPopupMenu(hEolFormatMenu, 0, p.x, p.y, 0, _pPublicInterface->getHSelf(), NULL);
}
else if (lpnm->dwItemSpec == DWORD(STATUSBAR_UNICODE_TYPE))
{
POINT p;
::GetCursorPos(&p);
HMENU hEncodingMenu = ::GetSubMenu(_mainMenuHandle, MENUINDEX_FORMAT);
TrackPopupMenu(hEncodingMenu, 0, p.x, p.y, 0, _pPublicInterface->getHSelf(), NULL);
}
return TRUE;
}
else if (_pFileSwitcherPanel && notification->nmhdr.hwndFrom == _pFileSwitcherPanel->getHSelf())
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.