Changeset 1428 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Jun 8, 2009, 1:09:55 AM (16 years ago)
Author:
Gregg Young
Message:

Improvement to status line 1 for selected drives (number of drives is shown at the beginning of the line if split status line is not selected); Comments for recent changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r1426 r1428  
    6666  12 Mar 09 SHL Use common SearchContainer
    6767  14 Mar 09 GKY Prevent execution of UM_SHOWME while drive scan is occuring
    68 
     68  06 Jun 09 GKY Add option to show file system type or drive label in tree
     69  06 Jun 09 GKY Status line to show file sys/label not shown in tree; shortened to fit split status
     70  07 Jun 09 GKY Fixed double names in tree container when collapsed tree is accessed
     71                before recursive scan
    6972***********************************************************************/
    7073
     
    788791              else
    789792                strcpy(szTmpLabel, volser.volumelabel);
    790 
    791               sprintf(s,
    792                       GetPString(fShowSysType ? IDS_TREESTATUSSTART1TEXT : fShowLabel
    793                                  ? IDS_TREESTATUSSTART2TEXT : IDS_TREESTATUSSTARTTEXT),
    794                       toupper(*pci->pszFileName), FileSystem,
    795                       szTmpLabel, volser.serial, szFree);
     793              if (fSplitStatus)
     794                sprintf(s,
     795                        GetPString(fShowSysType ? IDS_TREESTATUSSTART1TEXT : fShowLabel
     796                                   ? IDS_TREESTATUSSTART2TEXT : IDS_TREESTATUSSTARTTEXT),
     797                        toupper(*pci->pszFileName), FileSystem,
     798                        szTmpLabel, volser.serial, szFree);
     799              else {
     800                strcat(s, " [");
     801                sprintf(&s[strlen(s)],
     802                        GetPString(fShowSysType ? IDS_TREESTATUSSTART1TEXT : fShowLabel
     803                                   ? IDS_TREESTATUSSTART2TEXT : IDS_TREESTATUSSTARTTEXT),
     804                        toupper(*pci->pszFileName), FileSystem,
     805                        szTmpLabel, volser.serial, szFree);
     806                strcat(s, "]");
     807              }
    796808              if (!fMoreButtons) {
    797809                if (*dcd->mask.szMask ||
Note: See TracChangeset for help on using the changeset viewer.