--- trunk/reactos/subsys/system/explorer/desktop/desktop.cpp 2005-03-13 15:29:53 UTC (rev 14010)
+++ trunk/reactos/subsys/system/explorer/desktop/desktop.cpp 2005-03-13 15:30:29 UTC (rev 14011)
@@ -526,7 +526,7 @@
{
switch(nmsg) {
case WM_CONTEXTMENU:
- if (!DoContextMenu(GET_X_LPARAM(lparam), GET_Y_LPARAM(lparam), _cm_ifs))
+ if (!DoContextMenu(GET_X_LPARAM(lparam), GET_Y_LPARAM(lparam)))
DoDesktopContextMenu(GET_X_LPARAM(lparam), GET_Y_LPARAM(lparam));
break;
@@ -558,7 +558,7 @@
return super::Notify(id, pnmh);
}
-bool DesktopShellView::DoContextMenu(int x, int y, CtxMenuInterfaces& cm_ifs)
+bool DesktopShellView::DoContextMenu(int x, int y)
{
IDataObject* selection;
@@ -588,7 +588,7 @@
for(int i=pida->cidl; i>0; --i)
apidl[i-1] = (LPCITEMIDLIST) ((LPBYTE)pida+pida->aoffset[i]);
- hr = ShellFolderContextMenu(ShellFolder(parent_pidl), _hwnd, pida->cidl, apidl, x, y, cm_ifs);
+ hr = ShellFolderContextMenu(ShellFolder(parent_pidl), _hwnd, pida->cidl, apidl, x, y, _cm_ifs);
selection->Release();
@@ -612,7 +612,6 @@
hr = pcm->QueryContextMenu(hmenu, 0, FCIDM_SHVIEWFIRST, FCIDM_SHVIEWLAST-1, CMF_NORMAL|CMF_EXPLORE);
if (SUCCEEDED(hr)) {
- AppendMenu(hmenu, 0, FCIDM_SHVIEWLAST-3, ResString(IDS_PROPERTIES_EXPLORER));
AppendMenu(hmenu, MF_SEPARATOR, 0, NULL);
AppendMenu(hmenu, 0, FCIDM_SHVIEWLAST-1, ResString(IDS_ABOUT_EXPLORER));
@@ -620,24 +619,6 @@
_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) {
explorer_about(_hwnd);
} else if (idCmd) {