Changeset 1778 for trunk/dll/filldir.c


Ignore:
Timestamp:
Jun 27, 2014, 12:30:54 AM (11 years ago)
Author:
Steven Levine
Message:

Rework dircnrs.c DirObjWndProc UM_RESCAN to avoid hanging FM/2 Lite when
drive tree hidden. Also speeds up startup if Switch Tree on directory change
not enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/filldir.c

    r1764 r1778  
    236236  HAB thab;
    237237  HMQ hmq = (HMQ) 0;
    238   //BOOL ok;
    239238  static INT ProcessDirCount = 0;
    240239
     
    283282    DosReleaseMutexSem(hmtxScanning);
    284283    DosPostEventSem(hevTreeCnrScanComplete);
    285     if (fInitialDriveScan && fSwitchTree && hwndTree && fSaveState && pszFocusDir) {
     284    if (fInitialDriveScan && fSwitchTreeOnDirChg && hwndTree && fSaveState && pszFocusDir) {
    286285       // Keep drive tree in sync with directory container
    287286      if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszFocusDir), MPVOID))
     
    290289    ProcessDirCount = 0;
    291290    FixedVolume = 0;
    292     //fInitialDriveScan = FALSE;
    293291  }
    294292# ifdef FORTIFY
     
    15341532
    15351533  // move cursor onto the default drive rather than the first drive
    1536   if (!fSwitchTree) {
     1534  if (!fSwitchTreeOnDirChg) {
    15371535    pci = (PCNRITEM) WinSendMsg(hwndCnr,
    15381536                                CM_QUERYRECORD,
     
    17071705                                MPFROMP(pci),
    17081706                                MPFROM2SHORT(CMA_NEXT, CMA_ITEMORDER));
    1709   }
     1707  } // while pci
    17101708
    17111709  if (hwndMain)
Note: See TracChangeset for help on using the changeset viewer.