[prev in list] [next in list] [prev in thread] [next in thread]
List: ros-diffs
Subject: [ros-diffs] [frik85] 13771: Add support for explorer to load the
From: <frik85 () svn ! reactos ! com>
Date: 2005-02-27 21:40:33
Message-ID: 000001c51d14$f73bf3e0$6601a8c0 () penelope
[Download RAW message or body]
Add support for explorer to load the desk.cpl when right clicking on
background.
Modified: trunk/reactos/subsys/system/explorer/desktop/desktop.cpp
Modified: trunk/reactos/subsys/system/explorer/explorer_intres.h
Modified: trunk/reactos/subsys/system/explorer/explorer_intres.rc
_____
Modified: trunk/reactos/subsys/system/explorer/desktop/desktop.cpp
--- trunk/reactos/subsys/system/explorer/desktop/desktop.cpp
2005-02-27 21:31:07 UTC (rev 13770)
+++ trunk/reactos/subsys/system/explorer/desktop/desktop.cpp
2005-02-27 21:40:32 UTC (rev 13771)
@@ -612,6 +612,7 @@
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));
@@ -619,6 +620,24 @@
_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) {
_____
Modified: trunk/reactos/subsys/system/explorer/explorer_intres.h
--- trunk/reactos/subsys/system/explorer/explorer_intres.h
2005-02-27 21:31:07 UTC (rev 13770)
+++ trunk/reactos/subsys/system/explorer/explorer_intres.h
2005-02-27 21:40:32 UTC (rev 13771)
@@ -46,6 +46,7 @@
#define IDS_NOTIFY_AUTOHIDE 42
#define IDS_SHOW_HIDDEN_ICONS 43
#define IDS_HIDE_ICONS 44
+#define IDS_PROPERTIES_EXPLORER 45
#define IDI_REACTOS 100
#define IDI_EXPLORER 101
#define IDI_STARTMENU 102
_____
Modified: trunk/reactos/subsys/system/explorer/explorer_intres.rc
--- trunk/reactos/subsys/system/explorer/explorer_intres.rc
2005-02-27 21:31:07 UTC (rev 13770)
+++ trunk/reactos/subsys/system/explorer/explorer_intres.rc
2005-02-27 21:40:32 UTC (rev 13771)
@@ -1103,6 +1103,7 @@
IDS_ALL_USERS "All Users\\"
IDS_SEARCH "Search"
IDS_ABOUT_EXPLORER "&About Explorer..."
+ IDS_PROPERTIES_EXPLORER "&Properties"
IDS_LAUNCH_MANY_PROGRAMS
"You have selected more than one
program.\nAre you sure you want to launch all of them?"
IDS_DESKTOPBAR_SETTINGS "Desktop Settings"
[Attachment #3 (text/html)]
<html>
<head>
<style>
<!--
body { background-color:#ffffff }
.file { border:1px solid #eeeeee; margin-top:1em; margin-bottom:1em }
.pathname { font-family:monospace; float:right }
.fileheader { margin-bottom:.5em }
.diff { margin:0 }
.tasklist { padding:4px; border:1px dashed #000000; margin-top:1em }
.tasklist ul { margin-top:0; margin-bottom:0 }
tr.alt { background-color:#eeeeee }
#added { background-color:#ddffdd }
#addedchars { background-color:#99ff99; font-weight:bolder }
tr.alt #added { background-color:#ccf7cc }
#removed { background-color:#ffdddd }
#removedchars { background-color:#ff9999; font-weight:bolder }
tr.alt #removed { background-color:#f7cccc }
#info { color:#888888 }
#context { background-color:#eeeeee }
td {padding-left:.3em; padding-right:.3em }
tr.head { border-bottom-width:1px; border-bottom-style:solid }
tr.head td { padding:0; padding-top:.2em }
.task { background-color:#ffff00 }
.comment { padding:4px; border:1px dashed #000000; background-color:#ffffdd }
.error { color:red }
hr { border-width:0px; height:2px; background:black }
-->
</style>
</head>
<body>
<pre class="comment">Add support for explorer to load the desk.cpl when right \
clicking on background.</pre><pre class="diff" id="context">Modified: \
trunk/reactos/subsys/system/explorer/desktop/desktop.cpp
Modified: trunk/reactos/subsys/system/explorer/explorer_intres.h
Modified: trunk/reactos/subsys/system/explorer/explorer_intres.rc
</pre><hr /><div class="file">
<div class="fileheader"><big><b>Modified: \
trunk/reactos/subsys/system/explorer/desktop/desktop.cpp</b></big></div> <pre \
class="diff"><small id="info">--- \
trunk/reactos/subsys/system/explorer/desktop/desktop.cpp 2005-02-27 21:31:07 UTC (rev \
13770)
+++ trunk/reactos/subsys/system/explorer/desktop/desktop.cpp 2005-02-27 21:40:32 UTC \
(rev 13771) @@ -612,6 +612,7 @@
</small></pre><pre class="diff" id="context"> hr = pcm->QueryContextMenu(hmenu, \
0, FCIDM_SHVIEWFIRST, FCIDM_SHVIEWLAST-1, CMF_NORMAL|CMF_EXPLORE);
if (SUCCEEDED(hr)) {
</pre><pre class="diff" id="added">+ AppendMenu(hmenu, 0, FCIDM_SHVIEWLAST-3, \
ResString(IDS_PROPERTIES_EXPLORER)); </pre><pre class="diff" id="context"> \
AppendMenu(hmenu, MF_SEPARATOR, 0, NULL);
AppendMenu(hmenu, 0, FCIDM_SHVIEWLAST-1, ResString(IDS_ABOUT_EXPLORER));
@@ -619,6 +620,24 @@
</pre><pre class="diff" id="context">
_cm_ifs.reset();
</pre><pre class="diff" id="added">+ 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); \
+ }
</pre><pre class="diff" id="context"> if (idCmd == FCIDM_SHVIEWLAST-1) {
explorer_about(_hwnd);
} else if (idCmd) {
</pre></div>
<hr /><div class="file">
<div class="fileheader"><big><b>Modified: \
trunk/reactos/subsys/system/explorer/explorer_intres.h</b></big></div> <pre \
class="diff"><small id="info">--- \
trunk/reactos/subsys/system/explorer/explorer_intres.h 2005-02-27 21:31:07 UTC (rev \
13770)
+++ trunk/reactos/subsys/system/explorer/explorer_intres.h 2005-02-27 21:40:32 UTC \
(rev 13771) @@ -46,6 +46,7 @@
</small></pre><pre class="diff" id="context"> #define IDS_NOTIFY_AUTOHIDE \
42 #define IDS_SHOW_HIDDEN_ICONS \
43 #define IDS_HIDE_ICONS \
44 </pre><pre class="diff" id="added">+#define \
IDS_PROPERTIES_EXPLORER 45 </pre><pre class="diff" \
id="context"> #define IDI_REACTOS \
100 #define IDI_EXPLORER \
101 #define IDI_STARTMENU \
102 </pre></div>
<hr /><div class="file">
<div class="fileheader"><big><b>Modified: \
trunk/reactos/subsys/system/explorer/explorer_intres.rc</b></big></div> <pre \
class="diff"><small id="info">--- \
trunk/reactos/subsys/system/explorer/explorer_intres.rc 2005-02-27 21:31:07 UTC (rev \
13770)
+++ trunk/reactos/subsys/system/explorer/explorer_intres.rc 2005-02-27 21:40:32 UTC \
(rev 13771) @@ -1103,6 +1103,7 @@
</small></pre><pre class="diff" id="context"> IDS_ALL_USERS \
"All Users\\" IDS_SEARCH \
"Search" \
IDS_ABOUT_EXPLORER "&About Explorer..." </pre><pre \
class="diff" id="added">+ IDS_PROPERTIES_EXPLORER \
"&Properties" </pre><pre class="diff" id="context"> \
IDS_LAUNCH_MANY_PROGRAMS \
"You have selected more than one \
program.\nAre you sure you want to launch all of them?" \
IDS_DESKTOPBAR_SETTINGS "Desktop Settings" </pre>
</div>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic