Changeset 245 for trunk/dll/misc.c


Ignore:
Timestamp:
Aug 13, 2005, 10:58:39 PM (20 years ago)
Author:
root
Message:

Correct longname display option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r231 r245  
    1414  07 Jun 05 SHL Drop obsoletes
    1515  24 Jul 05 SHL Beautify
     16  24 Jul 05 SHL Correct longname display option
    1617
    1718***********************************************************************/
     
    367368    CHAR FileSystem[CCHMAXPATH];
    368369    INT x;
    369     BOOL showem, showemA, *bool;
     370    BOOL hasCreateDT;
     371    BOOL hasAccessDT;
     372    BOOL hasLongNames;
     373    BOOL *pBool;
    370374
    371375    if (!directory || !*directory)
     
    376380        if (!stricmp(FileSystem, HPFS) ||
    377381                !stricmp(FileSystem, JFS) ||
    378                 !stricmp(FileSystem, CDFS) ||
    379382                !stricmp(FileSystem, FAT32) ||
    380383                !stricmp(FileSystem, HPFS386))
    381384        {
    382             showem = TRUE;
    383             showemA = TRUE;
     385            hasCreateDT = TRUE;
     386            hasAccessDT = TRUE;
     387            hasLongNames = TRUE;
    384388        }
    385389        else if (!strcmp(FileSystem, CDFS))
    386390        {
    387             showem = TRUE;
    388             showemA = FALSE;
     391            hasCreateDT = TRUE;
     392            hasAccessDT = FALSE;
     393            hasLongNames = FALSE;
    389394        }
    390395        else
    391             showem = showemA = FALSE;
     396        {
     397            // Assume FAT
     398            hasCreateDT = FALSE;
     399            hasAccessDT = FALSE;
     400            hasLongNames = FALSE;
     401        }
    392402    }
    393403    else
    394404    {
    395         /* assume FAT */
    396         showem = showemA = FALSE;
    397     }
    398     bool = (dcd) ? &dcd -> detailsladate : &detailsladate;
     405        // Assume FAT
     406        hasCreateDT = FALSE;
     407        hasAccessDT = FALSE;
     408        hasLongNames = FALSE;
     409    }
     410    pBool = (dcd) ? &dcd -> detailsladate : &detailsladate;
    399411    AdjustCnrColVis(hwndCnr, GetPString(IDS_LADATE),
    400                     (*bool) ? showemA : FALSE, FALSE);
    401     bool = (dcd) ? &dcd -> detailslatime : &detailslatime;
     412                    (*pBool) ? hasAccessDT : FALSE, FALSE);
     413    pBool = (dcd) ? &dcd -> detailslatime : &detailslatime;
    402414    AdjustCnrColVis(hwndCnr, GetPString(IDS_LATIME),
    403                     (*bool) ? showemA : FALSE, FALSE);
    404     bool = (dcd) ? &dcd -> detailscrdate : &detailscrdate;
     415                    (*pBool) ? hasAccessDT : FALSE, FALSE);
     416    pBool = (dcd) ? &dcd -> detailscrdate : &detailscrdate;
    405417    AdjustCnrColVis(hwndCnr, GetPString(IDS_CRDATE),
    406                     (*bool) ? showem : FALSE, FALSE);
    407     bool = (dcd) ? &dcd -> detailscrtime : &detailscrtime;
     418                    (*pBool) ? hasCreateDT : FALSE, FALSE);
     419    pBool = (dcd) ? &dcd -> detailscrtime : &detailscrtime;
    408420    AdjustCnrColVis(hwndCnr, GetPString(IDS_CRTIME),
    409                     (*bool) ? showem : FALSE, FALSE);
    410     bool = (dcd) ? &dcd -> detailslongname : &detailslongname;
     421                    (*pBool) ? hasCreateDT : FALSE, FALSE);
     422    pBool = (dcd) ? &dcd -> detailslongname : &detailslongname;
    411423    AdjustCnrColVis(hwndCnr, GetPString(IDS_LNAME),
    412                     (*bool) ? !showem : FALSE, FALSE);
     424                    (*pBool) ? hasLongNames : FALSE, FALSE);
    413425    WinSendMsg(hwndCnr,
    414426               CM_INVALIDATEDETAILFIELDINFO,
Note: See TracChangeset for help on using the changeset viewer.