1 /* 2 * PROJECT: ReactOS Software Control Panel 3 * FILE: dll/cpl/appwiz/removestartmenuitems.c 4 * PURPOSE: ReactOS Software Control Panel 5 * PROGRAMMERS: Jared Smudde (computerwhiz02@hotmail.com) 6 */ 7 8 #include "appwiz.h" 9 10 INT_PTR CALLBACK RemoveStartMenuItemsProc(HWND hwndCPl, UINT Message, WPARAM wParam, LPARAM lParam) 11 { 12 switch(Message) 13 { 14 case WM_INITDIALOG: 15 return TRUE; 16 17 case WM_COMMAND: 18 switch(LOWORD(wParam)) 19 { 20 case IDOK: 21 EndDialog(hwndCPl, IDOK); 22 break; 23 case IDCANCEL: 24 EndDialog(hwndCPl, IDCANCEL); 25 break; 26 } 27 break; 28 default: 29 return FALSE; 30 } 31 return TRUE; 32 } 33 34 LONG CALLBACK 35 ShowRemoveStartMenuItems(HWND hwndCPl, LPWSTR szPath) 36 { 37 DialogBox(hApplet, MAKEINTRESOURCEW(IDD_CONFIG_STARTMENU), hwndCPl, RemoveStartMenuItemsProc); 38 return TRUE; 39 } 40 41 LONG 42 CALLBACK 43 ConfigStartMenu(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2) 44 { 45 return ShowRemoveStartMenuItems(hwndCPl, (LPWSTR) lParam1); 46 } 47