mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 12:40:33 +00:00
Add support for explorer to load the desk.cpl when right clicking on background.
svn path=/trunk/; revision=13771
This commit is contained in:
parent
a923f5285c
commit
8619cecdb3
3 changed files with 21 additions and 0 deletions
|
@ -612,6 +612,7 @@ HRESULT DesktopShellView::DoDesktopContextMenu(int x, int y)
|
||||||
hr = pcm->QueryContextMenu(hmenu, 0, FCIDM_SHVIEWFIRST, FCIDM_SHVIEWLAST-1, CMF_NORMAL|CMF_EXPLORE);
|
hr = pcm->QueryContextMenu(hmenu, 0, FCIDM_SHVIEWFIRST, FCIDM_SHVIEWLAST-1, CMF_NORMAL|CMF_EXPLORE);
|
||||||
|
|
||||||
if (SUCCEEDED(hr)) {
|
if (SUCCEEDED(hr)) {
|
||||||
|
AppendMenu(hmenu, 0, FCIDM_SHVIEWLAST-3, ResString(IDS_PROPERTIES_EXPLORER));
|
||||||
AppendMenu(hmenu, MF_SEPARATOR, 0, NULL);
|
AppendMenu(hmenu, MF_SEPARATOR, 0, NULL);
|
||||||
AppendMenu(hmenu, 0, FCIDM_SHVIEWLAST-1, ResString(IDS_ABOUT_EXPLORER));
|
AppendMenu(hmenu, 0, FCIDM_SHVIEWLAST-1, ResString(IDS_ABOUT_EXPLORER));
|
||||||
|
|
||||||
|
@ -619,6 +620,24 @@ HRESULT DesktopShellView::DoDesktopContextMenu(int x, int y)
|
||||||
|
|
||||||
_cm_ifs.reset();
|
_cm_ifs.reset();
|
||||||
|
|
||||||
|
if (idCmd == FCIDM_SHVIEWLAST-3) {
|
||||||
|
ShellExecute (_hwnd, _T("open"), _T("c:\\reactos\\system32\\rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0"), NULL, NULL, SW_SHOWNORMAL);
|
||||||
|
|
||||||
|
|
||||||
|
//explorer_about(_hwnd);
|
||||||
|
//system("c:\\reactos\\system32\\cmd.exe");
|
||||||
|
|
||||||
|
//ShellExecute (_hwnd, _T("open"), _T("%SystemRoot%\\system32\\cmd.exe"), NULL, NULL, SW_SHOWNORMAL);
|
||||||
|
|
||||||
|
//ShellExecute(NULL,"open","c:\\windows\\system32\\cmd.exe",NULL,NULL,SW_SHOWNORMAL);
|
||||||
|
//WCHAR* pFile="%SystemRoot%\system32\cmd.exe";
|
||||||
|
//int rcode;
|
||||||
|
//TCHAR pFile[256];
|
||||||
|
//strcopy("%SystemRoot%\\system32\\cmd.exe",pFile);
|
||||||
|
//ShellExecute(NULL, NULL, pFile, NULL, "C:\\", SW_SHOW);
|
||||||
|
//HINSTANCE rcode=ShellExecute(NULL, "open", pFile, NULL, "C:\\", SW_SHOW);
|
||||||
|
//ShellExecute(hwnd, __TEXT("open"), __TEXT("%SystemRoot%\system32\cmd.exe"), __TEXT("c:\"), SH_SHOW);
|
||||||
|
}
|
||||||
if (idCmd == FCIDM_SHVIEWLAST-1) {
|
if (idCmd == FCIDM_SHVIEWLAST-1) {
|
||||||
explorer_about(_hwnd);
|
explorer_about(_hwnd);
|
||||||
} else if (idCmd) {
|
} else if (idCmd) {
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
#define IDS_NOTIFY_AUTOHIDE 42
|
#define IDS_NOTIFY_AUTOHIDE 42
|
||||||
#define IDS_SHOW_HIDDEN_ICONS 43
|
#define IDS_SHOW_HIDDEN_ICONS 43
|
||||||
#define IDS_HIDE_ICONS 44
|
#define IDS_HIDE_ICONS 44
|
||||||
|
#define IDS_PROPERTIES_EXPLORER 45
|
||||||
#define IDI_REACTOS 100
|
#define IDI_REACTOS 100
|
||||||
#define IDI_EXPLORER 101
|
#define IDI_EXPLORER 101
|
||||||
#define IDI_STARTMENU 102
|
#define IDI_STARTMENU 102
|
||||||
|
|
|
@ -1103,6 +1103,7 @@ BEGIN
|
||||||
IDS_ALL_USERS "All Users\\"
|
IDS_ALL_USERS "All Users\\"
|
||||||
IDS_SEARCH "Search"
|
IDS_SEARCH "Search"
|
||||||
IDS_ABOUT_EXPLORER "&About Explorer..."
|
IDS_ABOUT_EXPLORER "&About Explorer..."
|
||||||
|
IDS_PROPERTIES_EXPLORER "&Properties"
|
||||||
IDS_LAUNCH_MANY_PROGRAMS
|
IDS_LAUNCH_MANY_PROGRAMS
|
||||||
"You have selected more than one program.\nAre you sure you want to launch all of them?"
|
"You have selected more than one program.\nAre you sure you want to launch all of them?"
|
||||||
IDS_DESKTOPBAR_SETTINGS "Desktop Settings"
|
IDS_DESKTOPBAR_SETTINGS "Desktop Settings"
|
||||||
|
|
Loading…
Reference in a new issue