Changeset 1550 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Nov 3, 2010, 3:50:42 AM (15 years ago)
Author:
Gregg Young
Message:

This actually fixes the double names in the tree container. It also streamlines the initial scan code by eliminating multiple redundant scans.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r1549 r1550  
    359359    if (pciToSelect && (INT) pciToSelect != -1) {
    360360      //DbgMsg(pszSrcFile, __LINE__, "TOP %i %i", fTopDir, maketop);
     361      if (fSwitchTreeExpand && ~pciToSelect->rc.flRecordAttr & CRA_EXPANDED)
     362        WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciToSelect), MPVOID);
    361363      if (fTopDir || maketop) {
    362364        ShowCnrRecord(hwndCnr, (PMINIRECORDCORE) pciToSelect);
    363365      }
    364       if (fSwitchTreeExpand && ~pciToSelect->rc.flRecordAttr & CRA_EXPANDED)
    365         WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciToSelect), MPVOID);
    366366      if (!quickbail) {
    367367        WinSendMsg(hwndCnr,
     
    654654          fTopDir = TRUE;
    655655        }
    656         if (fInitialDriveScan)
    657           DosWaitEventSem(hevInitialCnrScanComplete, SEM_INDEFINITE_WAIT);
    658656        ShowTreeRec(dcd->hwndCnr, (CHAR *)mp1, fCollapseFirst, TRUE);
     657        // fixme Is this PostMsg needed if recursive scan has already been done?
    659658        PostMsg(hwndTree, WM_COMMAND, MPFROM2SHORT(IDM_UPDATE, 0), MPVOID);
    660659        dcd->suspendview = (USHORT) tempsusp;
Note: See TracChangeset for help on using the changeset viewer.