[EXPLORER] Make the 'Remove' button in classic start menu properties spawn the remove dialog. Patch by Jared Smudde. CORE-12076 #resolve #comment Thanks!

svn path=/trunk/; revision=72877
This commit is contained in:
Mark Jansen 2016-10-01 15:57:29 +00:00
parent 3a5e3ae774
commit 51a51d3174

View file

@ -21,6 +21,7 @@
#include "precomp.h"
// TODO: Windows Explorer appears to be calling NewLinkHere / ConfigStartMenu directly for both items.
VOID OnAddStartMenuItems(HWND hDlg)
{
WCHAR szPath[MAX_PATH];
@ -33,6 +34,11 @@ VOID OnAddStartMenuItems(HWND hDlg)
}
}
VOID OnRemoveStartmenuItems(HWND hDlg)
{
ShellExecuteW(hDlg, L"open", L"rundll32.exe", L"appwiz.cpl,ConfigStartMenu", NULL, SW_SHOWNORMAL);
}
VOID OnAdvancedStartMenuItems()
{
WCHAR szPath[MAX_PATH];
@ -77,6 +83,9 @@ INT_PTR CALLBACK CustomizeClassicProc(HWND hwnd, UINT Message, WPARAM wParam, LP
case IDC_CLASSICSTART_ADD:
OnAddStartMenuItems(hwnd);
break;
case IDC_CLASSICSTART_REMOVE:
OnRemoveStartmenuItems(hwnd);
break;
case IDC_CLASSICSTART_ADVANCED:
OnAdvancedStartMenuItems();
break;