Author: gadamopoulos
Date: Sat Nov 5 16:33:24 2016
New Revision: 73137
URL: http://svn.reactos.org/svn/reactos?rev=73137&view=rev
Log:
[SHELL32]
- Properly add Printers folder in Control Panel.
CORE-12193
Modified:
trunk/reactos/dll/win32/shell32/res/rgs/printers.rgs
Modified: trunk/reactos/dll/win32/shell32/res/rgs/printers.rgs
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/res/rgs/…
==============================================================================
--- trunk/reactos/dll/win32/shell32/res/rgs/printers.rgs [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/res/rgs/printers.rgs [iso-8859-1] Sat Nov 5 16:33:24 2016
@@ -5,9 +5,9 @@
ForceRemove {2227A280-3AEA-1069-A2DE-08002B30309D} = s 'Printers and Faxes'
{
val '{305CA226-D286-468e-B848-2B2E8E697B74} 2' = d '2'
- val 'InfoTip' = e '@%%SystemRoot%%\system32\SHELL32.dll,-12696'
- val 'IntroText' = e '@%%SystemRoot%%\system32\SHELL32.dll,-31757'
- val 'LocalizedString' = e '@%%SystemRoot%%\system32\SHELL32.dll,-9319'
+ val InfoTip = e '@%%SystemRoot%%\system32\SHELL32.dll,-12696'
+ val IntroText = e '@%%SystemRoot%%\system32\SHELL32.dll,-31757'
+ val LocalizedString = e '@%%SystemRoot%%\system32\SHELL32.dll,-9319'
DefaultIcon = e '%%SystemRoot%%\System32\shell32.dll,-138'
InprocServer32 = s '%MODULE%'
{
@@ -36,13 +36,7 @@
{
NoRemove NameSpace
{
- Printers = s '{2227A280-3AEA-1069-A2DE-08002B30309D}'
- {
- val 'IconIndex' = d '&H0000012C'
- val 'Info' = s 'Adds, removes and changes settings for printers.'
- val 'Module' = e '%%SystemRoot%%\system32\main.cpl'
- val 'Name' = s 'Printers and Faxes'
- }
+ '{2227A280-3AEA-1069-A2DE-08002B30309D}' = s 'Printers'
}
}
}
Author: gadamopoulos
Date: Sat Nov 5 15:05:00 2016
New Revision: 73134
URL: http://svn.reactos.org/svn/reactos?rev=73134&view=rev
Log:
[SHELL32]
CDesktopBrowser: Forward the parameters pased in CDesktopBrowser::BrowseObject to SHOpenNewFrame. Thus the same parameters are eventually passed to CShellBrowser::Initialize.
[BROWSEUI]
CShellBrowser: Handle SBSP_EXPLOREMODE flag so as to show the tree view when the user selects the Explore option from the context menu.
Modified:
trunk/reactos/dll/win32/browseui/shellbrowser.cpp
trunk/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp
Modified: trunk/reactos/dll/win32/browseui/shellbrowser.cpp
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/browseui/shellbr…
==============================================================================
--- trunk/reactos/dll/win32/browseui/shellbrowser.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/browseui/shellbrowser.cpp [iso-8859-1] Sat Nov 5 15:05:00 2016
@@ -780,6 +780,9 @@
if (FAILED_UNEXPECTEDLY(hResult))
return hResult;
+ if ((dwFlags & SBSP_EXPLOREMODE) != NULL)
+ ShowBand(CLSID_ExplorerBand, true);
+
ShowWindow(SW_SHOWNORMAL);
return S_OK;
@@ -2182,6 +2185,9 @@
HRESULT STDMETHODCALLTYPE CShellBrowser::BrowseObject(LPCITEMIDLIST pidl, UINT wFlags)
{
+ if ((wFlags & SBSP_EXPLOREMODE) != NULL)
+ ShowBand(CLSID_ExplorerBand, true);
+
return BrowseToPIDL(pidl, BTP_UPDATE_CUR_HISTORY | BTP_UPDATE_NEXT_HISTORY);
}
Modified: trunk/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shelldes…
==============================================================================
--- trunk/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp [iso-8859-1] Sat Nov 5 15:05:00 2016
@@ -284,7 +284,7 @@
* find an open shell window that shows the requested pidl and activate it
*/
- return SHOpenNewFrame((LPITEMIDLIST)pidl, NULL, 0, 0);
+ return SHOpenNewFrame((LPITEMIDLIST)pidl, NULL, 0, wFlags);
}
HRESULT STDMETHODCALLTYPE CDesktopBrowser::GetViewStateStream(DWORD grfMode, IStream **ppStrm)