Changeset 1444 for trunk/dll/info.c


Ignore:
Timestamp:
Jul 23, 2009, 1:24:23 AM (16 years ago)
Author:
Gregg Young
Message:

Rework of drivebar to rescan all drives and refresh media buttons and menu items grey out inappropriate menu items. Streamline Tree scan code and use semaphores to serialize access. Add NOEASUPPORT and LOCALHD driveflag; .LONGNAME usage fixes; (Tickets 377-386)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/info.c

    r1439 r1444  
    3434  12 Jul 09 GKY Add xDosQueryAppType and xDoxAlloc... to allow FM/2 to load in high memory
    3535  12 Jul 09 GKY Remove code to update recursive scan setting which isn't user setable
     36  22 Jul 09 GKY Check if drives support EAs add driveflag for this
     37  22 Jul 09 GKY Add LocalHD driveflag
    3638
    3739***********************************************************************/
     
    929931      sprintf(s, GetPString(IDS_DRIVEFLAGSTITLETEXT), toupper(*(CHAR *)mp2));
    930932      WinSetWindowText(hwnd, s);
    931 /*
    932         WinEnableWindow(WinWindowFromID(hwnd,DVS_REMOVABLE),FALSE);
    933         WinEnableWindow(WinWindowFromID(hwnd,DVS_NOTWRITEABLE),FALSE);
    934         WinEnableWindow(WinWindowFromID(hwnd,DVS_IGNORE),FALSE);
    935         WinEnableWindow(WinWindowFromID(hwnd,DVS_CDROM),FALSE);
    936         WinEnableWindow(WinWindowFromID(hwnd,DVS_NOLONGNAMES),FALSE);
    937         WinEnableWindow(WinWindowFromID(hwnd,DVS_REMOTE),FALSE);
    938         WinEnableWindow(WinWindowFromID(hwnd,DVS_VIRTUAL),FALSE);
    939         WinEnableWindow(WinWindowFromID(hwnd,DVS_RAMDISK),FALSE);
    940         WinEnableWindow(WinWindowFromID(hwnd,DVS_BOOT),FALSE);
    941         WinEnableWindow(WinWindowFromID(hwnd,DVS_INVALID),FALSE);
    942         WinEnableWindow(WinWindowFromID(hwnd,DVS_ZIPSTREAM),FALSE);
    943         WinEnableWindow(WinWindowFromID(hwnd,DVS_NOSTATS),FALSE);
    944 */
    945933      PostMsg(hwnd, UM_UNDO, MPVOID, MPVOID);
    946934    }
     
    989977                     ((driveflags[drive] & DRIVE_WRITEVERIFYOFF) != 0));
    990978      WinCheckButton(hwnd,DVS_RSCANNED,
    991                      ((driveflags[drive] & DRIVE_RSCANNED) != 0));
     979                     ((driveflags[drive] & DRIVE_RSCANNED) != 0));
     980      WinCheckButton(hwnd,DVS_LOCALHD,
     981                     ((driveflags[drive] & DRIVE_LOCALHD) != 0));
     982      WinCheckButton(hwnd,DVS_NOEASUPPORT,
     983                     ((driveflags[drive] & DRIVE_NOEASUPPORT) != 0));
    992984    }
    993985    return 0;
Note: See TracChangeset for help on using the changeset viewer.