Separate mydocs and recent docs resources
authorGed Murphy <gedmurphy@reactos.org>
Fri, 13 Jan 2006 23:31:21 +0000 (23:31 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Fri, 13 Jan 2006 23:31:21 +0000 (23:31 +0000)
svn path=/trunk/; revision=20842

reactos/subsys/system/explorer/explorer.cpp
reactos/subsys/system/explorer/explorer_intres.rc
reactos/subsys/system/explorer/globals.h
reactos/subsys/system/explorer/res/documents.ico
reactos/subsys/system/explorer/res/recent-documents.ico [new file with mode: 0644]
reactos/subsys/system/explorer/resource.h
reactos/subsys/system/explorer/taskbar/startmenu.cpp

index 1faa4c7..2e6ee2c 100644 (file)
@@ -399,6 +399,7 @@ void IconCache::init()
     _icons[ICID_DESKSETTING]    = Icon(ICID_DESKSETTING,    IDI_DESKSETTING);
        _icons[ICID_NETCONNS]       = Icon(ICID_NETCONNS,           IDI_NETCONNS);
     _icons[ICID_ADMINISTRATION]        = Icon(ICID_ADMINISTRATION,     IDI_ADMINISTRATION);
+       _icons[ICID_RECENT]     = Icon(ICID_RECENT,         IDI_RECENT);
 }
 
 
index 0d4a19c..f06cabb 100644 (file)
@@ -170,7 +170,7 @@ IDI_CONTROLPAN          ICON    DISCARDABLE     "res/control-panel.ico"
 IDI_DESKSETTING         ICON    DISCARDABLE     "res/desktop-settings.ico"
 IDI_NETCONNS            ICON    DISCARDABLE     "res/network-conns.ico"
 IDI_ADMINISTRATION      ICON    DISCARDABLE     "res/administration.ico"
-
+IDI_RECENT              ICON    DISCARDABLE     "res/recent-documents.ico"
 
 #endif    // Neutral resources
 /////////////////////////////////////////////////////////////////////////////
index 174c998..a75549e 100644 (file)
@@ -87,6 +87,7 @@ enum ICON_ID {
     ICID_DESKSETTING,
     ICID_NETCONNS,
     ICID_ADMINISTRATION,
+    ICID_RECENT,
 
        ICID_DYNAMIC
 };
index 792f6d8..2902e4b 100644 (file)
Binary files a/reactos/subsys/system/explorer/res/documents.ico and b/reactos/subsys/system/explorer/res/documents.ico differ
diff --git a/reactos/subsys/system/explorer/res/recent-documents.ico b/reactos/subsys/system/explorer/res/recent-documents.ico
new file mode 100644 (file)
index 0000000..6029ce3
Binary files /dev/null and b/reactos/subsys/system/explorer/res/recent-documents.ico differ
index 4fd0a93..73affa0 100644 (file)
 #define IDI_DESKSETTING                 174
 #define IDI_NETCONNS                    175
 #define IDI_ADMINISTRATION              176
+#define IDI_RECENT                      178
 #define ID_VIEW_NAME                    401
 #define ID_VIEW_ALL_ATTRIBUTES          402
 #define ID_VIEW_SELECTED_ATTRIBUTES     403
index 7eaedae..2e2f9c4 100644 (file)
@@ -1712,7 +1712,7 @@ LRESULT   StartMenuRoot::Init(LPCREATESTRUCT pcs)
 #else
        if (IS_VALUE_ZERO(hkey, _T("NoRecentDocsMenu")))
 #endif
-               AddButton(ResString(IDS_RECENT),        ICID_DOCUMENTS, true, IDC_RECENT);
+               AddButton(ResString(IDS_RECENT),        ICID_RECENT, true, IDC_RECENT);
 
        AddButton(ResString(IDS_FAVORITES),             ICID_FAVORITES, true, IDC_FAVORITES);
 
@@ -2148,14 +2148,14 @@ void SettingsMenu::AddEntries()
        AddButton(ResString(IDS_CONNECTIONS),           ICID_NETWORK, false, IDC_CONNECTIONS);
 #else
 //TODO AddButton(ResString(IDS_PRINTERS),                      ICID_PRINTER, true, IDC_PRINTERS_MENU);
-       AddButton(ResString(IDS_CONNECTIONS),           ICID_NETCONNS, true, IDC_CONNECTIONS);
+       AddButton(ResString(IDS_CONNECTIONS),           ICID_NETCONNS, false, IDC_CONNECTIONS);
 #endif
        AddButton(ResString(IDS_ADMIN),                         ICID_ADMINISTRATION, true, IDC_ADMIN);
 
 #ifndef __MINGW32__    // SHRestricted() missing in MinGW (as of 29.10.2003)
        if (!g_Globals._SHRestricted || !SHRestricted(REST_NOCONTROLPANEL))
 #endif
-               AddButton(ResString(IDS_SETTINGS_MENU), ICID_CONFIG, true, IDC_SETTINGS_MENU);
+       AddButton(ResString(IDS_SETTINGS_MENU), ICID_CONFIG, true, IDC_SETTINGS_MENU);
 
        AddButton(ResString(IDS_DESKTOPBAR_SETTINGS), ICID_DESKSETTING, false, ID_DESKTOPBAR_SETTINGS);