mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[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:
parent
3a5e3ae774
commit
51a51d3174
1 changed files with 9 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
#include "precomp.h"
|
#include "precomp.h"
|
||||||
|
|
||||||
|
// TODO: Windows Explorer appears to be calling NewLinkHere / ConfigStartMenu directly for both items.
|
||||||
VOID OnAddStartMenuItems(HWND hDlg)
|
VOID OnAddStartMenuItems(HWND hDlg)
|
||||||
{
|
{
|
||||||
WCHAR szPath[MAX_PATH];
|
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()
|
VOID OnAdvancedStartMenuItems()
|
||||||
{
|
{
|
||||||
WCHAR szPath[MAX_PATH];
|
WCHAR szPath[MAX_PATH];
|
||||||
|
@ -77,6 +83,9 @@ INT_PTR CALLBACK CustomizeClassicProc(HWND hwnd, UINT Message, WPARAM wParam, LP
|
||||||
case IDC_CLASSICSTART_ADD:
|
case IDC_CLASSICSTART_ADD:
|
||||||
OnAddStartMenuItems(hwnd);
|
OnAddStartMenuItems(hwnd);
|
||||||
break;
|
break;
|
||||||
|
case IDC_CLASSICSTART_REMOVE:
|
||||||
|
OnRemoveStartmenuItems(hwnd);
|
||||||
|
break;
|
||||||
case IDC_CLASSICSTART_ADVANCED:
|
case IDC_CLASSICSTART_ADVANCED:
|
||||||
OnAdvancedStartMenuItems();
|
OnAdvancedStartMenuItems();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue