Changeset 751 for trunk/dll/objcnr.c


Ignore:
Timestamp:
Aug 2, 2007, 11:05:48 PM (13 years ago)
Author:
Steven Levine
Message:

Sync rest of code with CNRITEM mods
Sync code with ARCITEM mods
Get compare dialog working
Still some issues with status display
Still some issues with directory sizes tree display
Heap check diagnostic code mostly enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/objcnr.c

    r731 r751  
    1515  03 Nov 06 SHL Renames
    1616  22 Mar 07 GKY Use QWL_USER
     17  01 Aug 07 SHL Rework to sync with CNRITEM mods
    1718
    1819***********************************************************************/
     
    9394    pciP = WinSendMsg(hwndCnr,
    9495                      CM_ALLOCRECORD,
    95                       MPFROMLONG(EXTRA_RECORD_BYTES2),
     96                      MPFROMLONG(EXTRA_RECORD_BYTES),
    9697                      MPFROMLONG(1L));
    9798    if (!pciP) {
     
    100101    }
    101102    pciP->pszFileName = xstrdup(filename, pszSrcFile, __LINE__);
    102     pciP->pszDispAttr = pciP->szDispAttr;
    103     *pciP->szDispAttr = 0;
    104     //pciP->pszSubject = pciP->szSubject;
    105     pciP->pszSubject = xstrdup(NullStr, pszSrcFile, __LINE__);  // 23 Jul 07 SHL
    106     //pciP->pszLongname = pciP->szLongname;
    107     pciP->pszLongname = xstrdup(NullStr, pszSrcFile, __LINE__);
     103    pciP->pszDispAttr = NullStr;
     104    pciP->pszSubject = NullStr;
     105    pciP->pszLongname = NullStr;
    108106    if (strlen(filename) < 4)
    109       pciP->pszFileName = pciP->pszFileName;
     107      pciP->pszDisplayName = pciP->pszFileName;
    110108    else {
    111109      p = strrchr(pciP->pszFileName, '\\');
     
    114112      else if (*(p + 1))
    115113        p++;
    116       pciP->pszFileName = p;
    117     }
    118     pciP->rc.pszIcon = pciP->pszFileName;
     114      pciP->pszDisplayName = p;
     115    }
     116    pciP->rc.pszIcon = pciP->pszDisplayName;
    119117    if (fForceUpper)
    120118      strupr(pciP->pszFileName);
Note: See TracChangeset for help on using the changeset viewer.