Changeset 751 for trunk/dll/treecnr.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/treecnr.c

    r739 r751  
    3434  10 Jun 07 GKY Mouse button 3 white space click to fail silently
    3535  05 Jul 07 SHL Disable leftover debug code
     36  02 Aug 07 SHL Sync with CNRITEM mods
    3637
    3738***********************************************************************/
     
    697698      Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT);
    698699    else {
    699       WinSendMsg(dcd->hwndCnr,
    700                  CM_REMOVERECORD,
    701                  MPVOID,
    702                  MPFROM2SHORT(0, CMA_FREE | CMA_INVALIDATE | CMA_ERASE));
     700      RemoveCnrItems(dcd->hwndCnr, NULL, 0, CMA_FREE | CMA_INVALIDATE | CMA_ERASE);
    703701      WinSendMsg(dcd->hwndCnr,
    704702                 CM_SCROLLWINDOW, MPFROMSHORT(CMA_VERTICAL), MPFROMLONG(-1));
     
    17431741                break;
    17441742              }
    1745             }                           // for
    1746             WinSendMsg(hwnd,
    1747                        CM_REMOVERECORD,
    1748                        MPFROMP(&pciP),
    1749                        MPFROM2SHORT(1, CMA_FREE | CMA_INVALIDATE));
     1743            } // for
     1744            RemoveCnrItems(hwnd, pciP, 1, CMA_FREE | CMA_INVALIDATE);
    17501745            return 0;
    17511746          }
     
    19341929            if (!(driveflags[toupper(*pci->pszFileName) - 'A'] &
    19351930                  DRIVE_INCLUDEFILES))
    1936               WinSendMsg(hwnd,
    1937                          CM_REMOVERECORD,
    1938                          MPFROMP(&pci),
    1939                          MPFROM2SHORT(1, CMA_FREE | CMA_INVALIDATE));
     1931              RemoveCnrItems(hwnd, pci, 1, CMA_FREE | CMA_INVALIDATE);
    19401932            else {
    19411933
     
    19521944          if (!IsRoot(pci->pszFileName)) {
    19531945            NotifyError(pci->pszFileName, status);
    1954             WinSendMsg(hwnd,
    1955                        CM_REMOVERECORD,
    1956                        MPFROMP(&pci),
    1957                        MPFROM2SHORT(1, CMA_FREE | CMA_INVALIDATE));
     1946            RemoveCnrItems(hwnd, pci, 1, CMA_FREE | CMA_INVALIDATE);
    19581947          }
    19591948        }
     
    21912180            if (driveflags[info->device - 'A'] &
    21922181                (DRIVE_INVALID | DRIVE_IGNORE))
    2193               WinSendMsg(hwnd,
    2194                          CM_REMOVERECORD,
    2195                          MPFROMP(&pci), MPFROM2SHORT(1, CMA_FREE));
     2182              RemoveCnrItems(hwnd, pci, 1, CMA_FREE);
    21962183            else
    21972184              Flesh(hwnd, pci);
Note: See TracChangeset for help on using the changeset viewer.