Author: mjansen Date: Sat Oct 1 15:57:29 2016 New Revision: 72877
URL: http://svn.reactos.org/svn/reactos?rev=72877&view=rev Log: [EXPLORER] Make the 'Remove' button in classic start menu properties spawn the remove dialog. Patch by Jared Smudde. CORE-12076 #resolve #comment Thanks!
Modified: trunk/reactos/base/shell/explorer/startmnucust.cpp
Modified: trunk/reactos/base/shell/explorer/startmnucust.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/startmn... ============================================================================== --- trunk/reactos/base/shell/explorer/startmnucust.cpp [iso-8859-1] (original) +++ trunk/reactos/base/shell/explorer/startmnucust.cpp [iso-8859-1] Sat Oct 1 15:57:29 2016 @@ -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]; @@ -31,6 +32,11 @@ if (SUCCEEDED(StringCchCatW(szCommand, _countof(szCommand), szPath))) ShellExecuteW(hDlg, L"open", L"rundll32.exe", szCommand, NULL, SW_SHOWNORMAL); } +} + +VOID OnRemoveStartmenuItems(HWND hDlg) +{ + ShellExecuteW(hDlg, L"open", L"rundll32.exe", L"appwiz.cpl,ConfigStartMenu", NULL, SW_SHOWNORMAL); }
VOID OnAdvancedStartMenuItems() @@ -77,6 +83,9 @@ case IDC_CLASSICSTART_ADD: OnAddStartMenuItems(hwnd); break; + case IDC_CLASSICSTART_REMOVE: + OnRemoveStartmenuItems(hwnd); + break; case IDC_CLASSICSTART_ADVANCED: OnAdvancedStartMenuItems(); break;