Changeset 3243 for trunk/src/shell32/contmenu.cpp
- Timestamp:
- Mar 26, 2000, 6:34:57 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/contmenu.cpp
r1214 r3243 1 /* $Id: contmenu.cpp,v 1. 1 1999-10-09 11:13:18 sandervlExp $ */1 /* $Id: contmenu.cpp,v 1.2 2000-03-26 16:34:39 cbratschi Exp $ */ 2 2 3 3 /* … … 7 7 * Project Odin Software License can be found in LICENSE.TXT 8 8 * 9 * Corel WINE 20000324 level 9 10 */ 10 11 … … 40 41 41 42 #include "shell32_main.h" 43 #include "shresdef.h" 42 44 43 45 #include <heapstring.h> … … 90 92 } IContextMenuImpl; 91 93 92 93 94 //static struct ICOM_VTABLE(IContextMenu) cmvt; 94 95 … … 370 371 { /* folder menu */ 371 372 fExplore = uFlags & CMF_EXPLORE; 373 /* patch, the MFS_GRAYED items are not implemented yet */ 372 374 if(fExplore) 373 { _InsertMenuItem(hmenu, indexMenu++, TRUE, idCmdFirst+IDM_EXPLORE, MFT_STRING, "&Explore", MFS_ENABLED|MFS_DEFAULT); 375 { 376 _InsertMenuItem(hmenu, indexMenu++, TRUE, idCmdFirst+IDM_EXPLORE, MFT_STRING, "&Explore", MFS_GRAYED|MFS_DEFAULT); 374 377 _InsertMenuItem(hmenu, indexMenu++, TRUE, idCmdFirst+IDM_OPEN, MFT_STRING, "&Open", MFS_ENABLED); 375 378 } 376 379 else 377 380 { _InsertMenuItem(hmenu, indexMenu++, TRUE, idCmdFirst+IDM_OPEN, MFT_STRING, "&Open", MFS_ENABLED|MFS_DEFAULT); 378 _InsertMenuItem(hmenu, indexMenu++, TRUE, idCmdFirst+IDM_EXPLORE, MFT_STRING, "&Explore", MFS_ ENABLED);381 _InsertMenuItem(hmenu, indexMenu++, TRUE, idCmdFirst+IDM_EXPLORE, MFT_STRING, "&Explore", MFS_GRAYED); 379 382 } 380 383 … … 408 411 SHELLEXECUTEINFOA sei; 409 412 int i; 413 int iItem; 414 int hwndListView = GetDlgItem(lpcmi->hwnd,ID_LISTVIEW); 410 415 411 416 dprintf(("SHELL32:contmenu:IContextMenu_fnInvokeCommand(%08xh,%08xh,%08xh,%08xh)\n", … … 450 455 451 456 case IDM_RENAME: 452 MessageBeep(MB_OK);453 /*handle rename for the view here*/457 iItem = ListView_GetNextItem(hwndListView,0, LVNI_FOCUSED); 458 ListView_EditLabelA(hwndListView, iItem); 454 459 break; 455 460 }
Note:
See TracChangeset
for help on using the changeset viewer.