Changeset 1360 for trunk/dll/misc.c


Ignore:
Timestamp:
Dec 28, 2008, 9:35:00 PM (17 years ago)
Author:
Gregg Young
Message:

Conditionally enable Refresh removable media and individual partition menu items based on availability of required tool in PATH. (Tickets 36 & 54)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r1358 r1360  
    5252  23 Aug 08 GKY Add CheckDriveSpaceAvail To pre check drive space to prevent failures
    5353  25 Dec 08 GKY Add code to allow write verify to be turned off on a per drive basis
     54  28 Dec 08 GKY Check for LVM.EXE and remove Refresh removable media menu item as appropriate
    5455
    5556***********************************************************************/
     
    17291730                   MPFROM2SHORT(IDM_OBJECTSUBMENU, TRUE), MPVOID);
    17301731      }
     1732      if (!fLVM)
     1733        WinSendMsg(TreeMenu, MM_DELETEITEM,
     1734                   MPFROM2SHORT(IDM_REFRESHREMOVABLES, TRUE), MPVOID);
    17311735    }
    17321736    else if (hwndMenu == &ArcMenu) {
     
    17581762                   MPFROM2SHORT(IDM_OBJECTSUBMENU, TRUE), MPVOID);
    17591763      }
     1764      if (!fLVM)
     1765        WinSendMsg(FileMenu, MM_DELETEITEM,
     1766                   MPFROM2SHORT(IDM_REFRESHREMOVABLES, TRUE), MPVOID);
    17601767    }
    17611768    else if (hwndMenu == &DirCnrMenu) {
     
    17691776    else if (hwndMenu == &TreeCnrMenu) {
    17701777      WinSetWindowUShort(TreeCnrMenu, QWS_ID, IDM_VIEWSMENU);
    1771       SetConditionalCascade(TreeCnrMenu, IDM_PARTITIONSMENU, IDM_PARTITION);
     1778      if (!fLVM)
     1779        WinSendMsg(TreeCnrMenu, MM_DELETEITEM,
     1780                   MPFROM2SHORT(IDM_REFRESHREMOVABLES, TRUE), MPVOID);
    17721781    }
    17731782    else if (hwndMenu == &ArcCnrMenu) {
Note: See TracChangeset for help on using the changeset viewer.