Changeset 1870 for trunk/dll/dircnrs.c


Ignore:
Timestamp:
Sep 21, 2015, 12:48:03 AM (10 years ago)
Author:
Gregg Young
Message:

Code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dircnrs.c

    r1858 r1870  
    902902        // 2015-08-12 SHL Optimze to update drive tree for only last saved state
    903903
    904         // 2015-08-13 SHL
     904#if 0        // 2015-08-13 SHL
    905905        if (fSwitchTreeOnDirChg)
    906906          DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug
    907 
     907#endif
    908908        if (fSwitchTreeOnDirChg) {
    909909          // Keep drive tree in sync with directory container
     
    913913            if (hwndMain) {
    914914              if (TopWindow(hwndMain, (HWND)0) == dcd->hwndFrame) {
    915                 DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug
     915                //DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug
    916916                if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID))
    917917                  free(pszTempDir);
     
    919919            }
    920920            else {
    921               DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug
     921              //DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug
    922922              if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID))
    923923                free(pszTempDir);
     
    14311431      if (fSwitchTreeOnFocus && hwndTree && dcd && *dcd->directory) {
    14321432        PSZ pszTempDir = xstrdup(dcd->directory, pszSrcFile, __LINE__);
    1433         DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc WM_SETFOCUS cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug
     1433        //DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc WM_SETFOCUS cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug
    14341434        if (pszTempDir) {
    1435           DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc WM_SETFOCUS PostMsg(UM_SHOWME, %s)", pszTempDir); // 2015-08-04 SHL FIXME debug
     1435          //DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc WM_SETFOCUS PostMsg(UM_SHOWME, %s)", pszTempDir); // 2015-08-04 SHL FIXME debug
    14361436          if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID))
    14371437            free(pszTempDir);           // Failed
     
    19721972
    19731973          if (pszTempDir) {
    1974             DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc IDM_FINDINTREE PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug
     1974            //DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc IDM_FINDINTREE PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug
    19751975            if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir),
    19761976                            MPFROMLONG(1L)))
     
    23592359
    23602360      case IDM_RESCAN:
    2361         //DosEnterCritSec(); //GKY 11-27-08
    2362         dcd->stopflag++;
    2363         // DosExitCritSec();
     2361        dcd->stopflag++;;
    23642362        // DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    23652363        if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPVOID)) {
    2366           //DosEnterCritSec(); //GKY 11-27-08
    23672364          dcd->stopflag--;
    2368           //DosExitCritSec();
    23692365        }
    23702366        break;
     
    24982494          strcpy(dcd->previous, dcd->directory);
    24992495          strcpy(dcd->directory, (CHAR *)mp2);
    2500           //DosEnterCritSec(); // GKY 11-27-08
    25012496          dcd->stopflag++;
    2502           //DosExitCritSec();
    25032497          //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    25042498          if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) {
    25052499            strcpy(dcd->directory, dcd->previous);
    2506             //DosEnterCritSec(); // GKY 11-27-08
    25072500            dcd->stopflag--;
    2508             //DosExitCritSec();
    25092501          }
    25102502          else if (*dcd->directory) {
Note: See TracChangeset for help on using the changeset viewer.