[DEVMGR] Fix wonky action menu

Patch by Pi_User5.

CORE-10364
This commit is contained in:
Eric Kohl 2019-08-03 14:53:00 +02:00
parent 23faa89d09
commit d1a2983c00
26 changed files with 131 additions and 25 deletions

View file

@ -505,6 +505,12 @@ CDeviceManager::OnNotify(_In_ LPARAM lParam)
{
case TVN_SELCHANGED:
{
HMENU hMenu = GetSubMenu(m_hMenu, 1);
for (INT i = GetMenuItemCount(hMenu) - 1; i >= 0; i--)
{
DeleteMenu(hMenu, i, MF_BYPOSITION);
}
m_DeviceView->CreateActionMenu(hMenu, true);
UpdateToolbar();
break;
}