[EXPLORER] Stubplement and show the "customize classic start menu" dialog
authorRobert Naumann <gonzomdx@gmail.com>
Sat, 21 Nov 2015 12:49:38 +0000 (12:49 +0000)
committerRobert Naumann <gonzomdx@gmail.com>
Sat, 21 Nov 2015 12:49:38 +0000 (12:49 +0000)
svn path=/trunk/; revision=69992

reactos/base/shell/explorer/CMakeLists.txt
reactos/base/shell/explorer/precomp.h
reactos/base/shell/explorer/startmnucust.cpp [new file with mode: 0644]
reactos/base/shell/explorer/trayprop.cpp

index ce8f50c..d7fead8 100644 (file)
@@ -13,6 +13,7 @@ list(APPEND SOURCE
     startctxmnu.cpp
     startmnu.cpp
     startmnusite.cpp
+    startmnucust.cpp
     startup.cpp
     taskband.cpp
     taskswnd.cpp
index 3b8954f..c137349 100644 (file)
@@ -315,6 +315,12 @@ IN BOOL bSmallIcons);
 HRESULT 
 CreateStartMenuSite(IN OUT ITrayWindow *Tray, const IID & riid, PVOID * ppv);
 
+/*
+ * startmnucust.cpp
+ */
+VOID 
+ShowCustomizeClassic(HINSTANCE, HWND);
+
 /*
  * trayntfy.c
  */
diff --git a/reactos/base/shell/explorer/startmnucust.cpp b/reactos/base/shell/explorer/startmnucust.cpp
new file mode 100644 (file)
index 0000000..e1d5e5f
--- /dev/null
@@ -0,0 +1,51 @@
+/*
+ * ReactOS Explorer
+ *
+ * Copyright 2006 - 2007 Thomas Weidenmueller <w3seek@reactos.org>
+ *                  2015 Robert Naumann <gonzomdx@gmail.com|
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+#include "precomp.h"
+
+BOOL CALLBACK CustomizeClassicProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
+{
+    switch(Message)
+    {
+        case WM_INITDIALOG:
+
+        return TRUE;
+        case WM_COMMAND:
+            switch(LOWORD(wParam))
+            {
+                case IDOK:
+                    EndDialog(hwnd, IDOK);
+                break;
+                case IDCANCEL:
+                    EndDialog(hwnd, IDCANCEL);
+                break;
+            }
+        break;
+        default:
+            return FALSE;
+    }
+    return TRUE;
+}
+VOID ShowCustomizeClassic(HINSTANCE hInst, HWND hExplorer)
+ {
+     DialogBox(hInst, MAKEINTRESOURCE(IDD_CLASSICSTART_CUSTOMIZE), hExplorer, CustomizeClassicProc);
+ }
\ No newline at end of file
index aad5eaa..70fb175 100644 (file)
@@ -198,6 +198,17 @@ StartMenuPageProc(HWND hwndDlg,
     {
         case WM_INITDIALOG:
             break;
+            
+        case WM_COMMAND:
+        {
+            switch (LOWORD(wParam))
+            {
+                case IDC_TASKBARPROP_STARTMENUCLASSICCUST:
+                    ShowCustomizeClassic(hExplorerInstance, hwndDlg);
+                    break;
+            }
+            break;
+        }
 
         case WM_DESTROY:
             break;