mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 13:13:00 +00:00
[DEVMGR] Fix wonky action menu
Patch by Pi_User5. CORE-10364
This commit is contained in:
parent
23faa89d09
commit
d1a2983c00
26 changed files with 131 additions and 25 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue