Changeset 1425 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Jun 6, 2009, 10:39:47 PM (16 years ago)
Author:
Gregg Young
Message:

Changed status1 line for drives to show label/systype not shown in tree or both if nothing in tree; made changes to shorten string to better fit in the status window.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r1424 r1425  
    743743      CHAR szFree[64];
    744744      CNRINFO cnri;
     745      CHAR FileSystem[CCHMAXPATH * 2];
     746      CHAR szTmpLabel[CCHMAXPATH];
     747      ULONG type;
    745748
    746749      strcpy(s, GetPString(IDS_TREETEXT));
     
    773776              else
    774777                *szFree = 0;
    775               driveserial[toupper(*pci->pszFileName) - 'A'] = volser.serial;
    776               sprintf(&s[strlen(s)],
    777                       GetPString(IDS_TREESTATUSSTARTTEXT),
    778                       toupper(*pci->pszFileName),
    779                       volser.volumelabel, volser.serial, szFree);
     778              driveserial[toupper(*pci->pszFileName) - 'A'] = volser.serial;
     779              if (CheckDrive(toupper(*pci->pszFileName), FileSystem, &type) == -1 || fShowSysType)
     780                strcpy(FileSystem, "");
     781              if (fShowLabel)
     782                strcpy(szTmpLabel, "");
     783              else
     784                strcpy(szTmpLabel, volser.volumelabel);
     785
     786              sprintf(s,
     787                      GetPString(fShowSysType ? IDS_TREESTATUSSTART1TEXT : fShowLabel
     788                                 ? IDS_TREESTATUSSTART2TEXT : IDS_TREESTATUSSTARTTEXT),
     789                      toupper(*pci->pszFileName), FileSystem,
     790                      szTmpLabel, volser.serial, szFree);
    780791              if (!fMoreButtons) {
    781792                if (*dcd->mask.szMask ||
Note: See TracChangeset for help on using the changeset viewer.