mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[EXPLORER] Stubplement and show the "customize classic start menu" dialog
svn path=/trunk/; revision=69992
This commit is contained in:
parent
bfa1295d2b
commit
4254ef0090
4 changed files with 69 additions and 0 deletions
|
@ -13,6 +13,7 @@ list(APPEND SOURCE
|
||||||
startctxmnu.cpp
|
startctxmnu.cpp
|
||||||
startmnu.cpp
|
startmnu.cpp
|
||||||
startmnusite.cpp
|
startmnusite.cpp
|
||||||
|
startmnucust.cpp
|
||||||
startup.cpp
|
startup.cpp
|
||||||
taskband.cpp
|
taskband.cpp
|
||||||
taskswnd.cpp
|
taskswnd.cpp
|
||||||
|
|
|
@ -315,6 +315,12 @@ IN BOOL bSmallIcons);
|
||||||
HRESULT
|
HRESULT
|
||||||
CreateStartMenuSite(IN OUT ITrayWindow *Tray, const IID & riid, PVOID * ppv);
|
CreateStartMenuSite(IN OUT ITrayWindow *Tray, const IID & riid, PVOID * ppv);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* startmnucust.cpp
|
||||||
|
*/
|
||||||
|
VOID
|
||||||
|
ShowCustomizeClassic(HINSTANCE, HWND);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* trayntfy.c
|
* trayntfy.c
|
||||||
*/
|
*/
|
||||||
|
|
51
reactos/base/shell/explorer/startmnucust.cpp
Normal file
51
reactos/base/shell/explorer/startmnucust.cpp
Normal file
|
@ -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);
|
||||||
|
}
|
|
@ -199,6 +199,17 @@ StartMenuPageProc(HWND hwndDlg,
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case WM_COMMAND:
|
||||||
|
{
|
||||||
|
switch (LOWORD(wParam))
|
||||||
|
{
|
||||||
|
case IDC_TASKBARPROP_STARTMENUCLASSICCUST:
|
||||||
|
ShowCustomizeClassic(hExplorerInstance, hwndDlg);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_DESTROY:
|
case WM_DESTROY:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue