Author: rnaumann Date: Sat Nov 21 12:49:38 2015 New Revision: 69992
URL: http://svn.reactos.org/svn/reactos?rev=69992&view=rev Log: [EXPLORER] Stubplement and show the "customize classic start menu" dialog
Added: trunk/reactos/base/shell/explorer/startmnucust.cpp (with props) Modified: trunk/reactos/base/shell/explorer/CMakeLists.txt trunk/reactos/base/shell/explorer/precomp.h trunk/reactos/base/shell/explorer/trayprop.cpp
Modified: trunk/reactos/base/shell/explorer/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/CMakeLi... ============================================================================== --- trunk/reactos/base/shell/explorer/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/base/shell/explorer/CMakeLists.txt [iso-8859-1] Sat Nov 21 12:49:38 2015 @@ -13,6 +13,7 @@ startctxmnu.cpp startmnu.cpp startmnusite.cpp + startmnucust.cpp startup.cpp taskband.cpp taskswnd.cpp
Modified: trunk/reactos/base/shell/explorer/precomp.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/precomp... ============================================================================== --- trunk/reactos/base/shell/explorer/precomp.h [iso-8859-1] (original) +++ trunk/reactos/base/shell/explorer/precomp.h [iso-8859-1] Sat Nov 21 12:49:38 2015 @@ -316,6 +316,12 @@ CreateStartMenuSite(IN OUT ITrayWindow *Tray, const IID & riid, PVOID * ppv);
/* + * startmnucust.cpp + */ +VOID +ShowCustomizeClassic(HINSTANCE, HWND); + +/* * trayntfy.c */
Added: trunk/reactos/base/shell/explorer/startmnucust.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/startmn... ============================================================================== --- trunk/reactos/base/shell/explorer/startmnucust.cpp (added) +++ trunk/reactos/base/shell/explorer/startmnucust.cpp [iso-8859-1] Sat Nov 21 12:49:38 2015 @@ -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); + }
Propchange: trunk/reactos/base/shell/explorer/startmnucust.cpp ------------------------------------------------------------------------------ svn:eol-style = native
Modified: trunk/reactos/base/shell/explorer/trayprop.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/traypro... ============================================================================== --- trunk/reactos/base/shell/explorer/trayprop.cpp [iso-8859-1] (original) +++ trunk/reactos/base/shell/explorer/trayprop.cpp [iso-8859-1] Sat Nov 21 12:49:38 2015 @@ -198,6 +198,17 @@ { case WM_INITDIALOG: break; + + case WM_COMMAND: + { + switch (LOWORD(wParam)) + { + case IDC_TASKBARPROP_STARTMENUCLASSICCUST: + ShowCustomizeClassic(hExplorerInstance, hwndDlg); + break; + } + break; + }
case WM_DESTROY: break;