Changeset 1777 for trunk/dll/dircnrs.c


Ignore:
Timestamp:
Jun 13, 2014, 3:51:31 AM (11 years ago)
Author:
Steven Levine
Message:

Rework FM/2 Config menu. Add confirm delete toggle. (Steven)
Rework FM/2 Lite Config menu. Add drag&drop dialog toggle and confirm delete toggles. (Steven)
Correct View, Sort and Filter button initialization. (Steven)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dircnrs.c

    r1756 r1777  
    747747  case UM_SETUP:
    748748#   ifdef FORTIFY
    749     //DbgMsg(pszSrcFile, __LINE__, "UM_SETUP hwnd %p TID %u", hwnd, GetTidForThread()); // 18 Jul 08 SHL fixme
     749    // DbgMsg(pszSrcFile, __LINE__, "UM_SETUP hwnd %p TID %u", hwnd, GetTidForThread());        // 18 Jul 08 SHL fixme
    750750    Fortify_EnterScope();
    751751#   endif
     
    878878          WinSendMsg(hwndMain, UM_LOADFILE, MPVOID, MPVOID);
    879879      }
    880       while (fInitialDriveScan)
    881         DosSleep(100);
     880      while (fInitialDriveScan) {
     881        DosSleep(100);                  // Allow to complete
     882      }
    882883      if (fSwitchTree && hwndTree) {
    883884        // Keep drive tree in sync with directory container
     
    14141415          strcpy(dcd->previous, dcd->directory);
    14151416          strcpy(dcd->directory, fullname);
    1416           //DosEnterCritSec(); //GKY 11-27-08
     1417          // DosEnterCritSec(); // GKY 11-27-08
    14171418          dcd->stopflag++;
    1418           //DosExitCritSec();
    1419           //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
     1419          // DosExitCritSec();
     1420          // DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    14201421          if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) {
    14211422            strcpy(dcd->directory, dcd->previous);
    1422             //DosEnterCritSec(); //GKY 11-27-08
     1423            // DosEnterCritSec(); // GKY 11-27-08
    14231424            dcd->stopflag--;
    1424             //DosExitCritSec();
     1425            // DosExitCritSec();
    14251426          }
    14261427          else if (*dcd->directory) {
     
    16201621        }
    16211622        else
    1622           DosSleep(32); //05 Aug 07 GKY 64
     1623          DosSleep(32); // 05 Aug 07 GKY 64
    16231624        WinEnableMenuItem(DirCnrMenu, IDM_FINDINTREE, (hwndTree != (HWND) 0));
    16241625      }
     1626      // 2014-06-11 SHL fm/2 lite can get here before drive scan completes
    16251627      if (!fInitialDriveScan)
    16261628        PostMsg(hwnd, UM_SETUP2, MPVOID, MPVOID);
     
    16341636  case UM_SETUP2:
    16351637    if (dcd) {
     1638      // DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc UM_SETUP2 %x", hwnd);
    16361639      AdjustCnrColsForPref(hwnd, NULL, &dcd->ds, FALSE);
    16371640      SayFilter(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT),
     
    18471850              strcpy(newfile, dcd->directory);
    18481851              AddBackslashToPath(newfile);
    1849               //if (newfile[strlen(newfile) - 1] != '\\')
    1850               //  strcat(newfile, "\\");
     1852#             if 0     
     1853              if (newfile[strlen(newfile) - 1] != '\\')
     1854                strcat(newfile, "\\");
     1855#             endif     
    18511856              strcat(newfile, sip.ret);
    18521857              test = IsFile(newfile);
     
    21242129              TileChildren(dcd->hwndParent, TRUE);
    21252130            WinSetWindowPos(hwndC, HWND_TOP, 0, 0, 0, 0, SWP_ACTIVATE);
    2126             DosSleep(100); //05 Aug 07 GKY 250
     2131            DosSleep(100); // 05 Aug 07 GKY 250
    21272132          }
    21282133        }
     
    21472152
    21482153      case IDM_COLLECTOR:
    2149         DosSleep(32); //05 Aug 07 GKY 64
     2154        DosSleep(32); // 05 Aug 07 GKY 64
    21502155        {
    21512156          CHAR **list;
     
    22122217
    22132218      case IDM_RESORT:
    2214 //          WinSendMsg(hwnd,
    2215 //                     CM_SORTRECORD,
    2216 //                     MPFROMP(SortDirCnr),
    2217 //                     MPFROMLONG((fSyncUpdates) ? sortFlags : dcd->sortFlags));
     2219#           if 0
     2220            WinSendMsg(hwnd,
     2221                       CM_SORTRECORD,
     2222                       MPFROMP(SortDirCnr),
     2223                       MPFROMLONG((fSyncUpdates) ? sortFlags : dcd->sortFlags));
     2224#endif
    22182225        WinSendMsg(hwnd,
    22192226                   CM_SORTRECORD,
     
    23152322        //DosEnterCritSec(); //GKY 11-27-08
    23162323        dcd->stopflag++;
    2317         //DosExitCritSec();
    2318         //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
     2324        // DosExitCritSec();
     2325        // DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    23192326        if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPVOID)) {
    23202327          //DosEnterCritSec(); //GKY 11-27-08
     
    27692776        if (pci->attrFile & FILE_DIRECTORY) {
    27702777          menuHwnd = CheckMenu(hwndMainMenu, &DirMenu, DIR_POPUP);
    2771 //          WinEnableMenuItem(DirMenu,IDM_TREE,TRUE);
     2778          // WinEnableMenuItem(DirMenu,IDM_TREE,TRUE);
    27722779        }
    27732780        else
Note: See TracChangeset for help on using the changeset viewer.