Ignore:
Timestamp:
Mar 26, 2000, 6:34:57 PM (25 years ago)
Author:
cbratschi
Message:

merged with Corel WINE 20000324

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 sandervl Exp $ */
     1/* $Id: contmenu.cpp,v 1.2 2000-03-26 16:34:39 cbratschi Exp $ */
    22
    33/*
     
    77 * Project Odin Software License can be found in LICENSE.TXT
    88 *
     9 * Corel WINE 20000324 level
    910 */
    1011
     
    4041
    4142#include "shell32_main.h"
     43#include "shresdef.h"
    4244
    4345#include <heapstring.h>
     
    9092} IContextMenuImpl;
    9193
    92 
    9394//static struct ICOM_VTABLE(IContextMenu) cmvt;
    9495
     
    370371          { /* folder menu */
    371372            fExplore = uFlags & CMF_EXPLORE;
     373            /* patch, the MFS_GRAYED items are not implemented yet */
    372374            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);
    374377              _InsertMenuItem(hmenu, indexMenu++, TRUE, idCmdFirst+IDM_OPEN, MFT_STRING, "&Open", MFS_ENABLED);
    375378            }
    376379            else
    377380            { _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);
    379382            }
    380383
     
    408411        SHELLEXECUTEINFOA       sei;
    409412        int   i;
     413        int   iItem;
     414        int   hwndListView = GetDlgItem(lpcmi->hwnd,ID_LISTVIEW);
    410415
    411416  dprintf(("SHELL32:contmenu:IContextMenu_fnInvokeCommand(%08xh,%08xh,%08xh,%08xh)\n",
     
    450455
    451456          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);
    454459            break;
    455460        }
Note: See TracChangeset for help on using the changeset viewer.