Skip to content

Commit

Permalink
[EXPLORER] Stubplement and show the "customize classic start menu" di…
Browse files Browse the repository at this point in the history
…alog

svn path=/trunk/; revision=69992
  • Loading branch information
gonzoMD committed Nov 21, 2015
1 parent bfa1295 commit 4254ef0
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions reactos/base/shell/explorer/CMakeLists.txt
Expand Up @@ -13,6 +13,7 @@ list(APPEND SOURCE
startctxmnu.cpp
startmnu.cpp
startmnusite.cpp
startmnucust.cpp
startup.cpp
taskband.cpp
taskswnd.cpp
Expand Down
6 changes: 6 additions & 0 deletions reactos/base/shell/explorer/precomp.h
Expand Up @@ -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
*/
Expand Down
51 changes: 51 additions & 0 deletions reactos/base/shell/explorer/startmnucust.cpp
@@ -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);
}
11 changes: 11 additions & 0 deletions reactos/base/shell/explorer/trayprop.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 4254ef0

Please sign in to comment.