Changeset 1870 for trunk/dll/dircnrs.c
- Timestamp:
- Sep 21, 2015, 12:48:03 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/dircnrs.c
r1858 r1870 902 902 // 2015-08-12 SHL Optimze to update drive tree for only last saved state 903 903 904 904 #if 0 // 2015-08-13 SHL 905 905 if (fSwitchTreeOnDirChg) 906 906 DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug 907 907 #endif 908 908 if (fSwitchTreeOnDirChg) { 909 909 // Keep drive tree in sync with directory container … … 913 913 if (hwndMain) { 914 914 if (TopWindow(hwndMain, (HWND)0) == dcd->hwndFrame) { 915 DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug915 //DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug 916 916 if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID)) 917 917 free(pszTempDir); … … 919 919 } 920 920 else { 921 DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug921 //DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug 922 922 if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID)) 923 923 free(pszTempDir); … … 1431 1431 if (fSwitchTreeOnFocus && hwndTree && dcd && *dcd->directory) { 1432 1432 PSZ pszTempDir = xstrdup(dcd->directory, pszSrcFile, __LINE__); 1433 DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc WM_SETFOCUS cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug1433 //DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc WM_SETFOCUS cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug 1434 1434 if (pszTempDir) { 1435 DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc WM_SETFOCUS PostMsg(UM_SHOWME, %s)", pszTempDir); // 2015-08-04 SHL FIXME debug1435 //DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc WM_SETFOCUS PostMsg(UM_SHOWME, %s)", pszTempDir); // 2015-08-04 SHL FIXME debug 1436 1436 if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID)) 1437 1437 free(pszTempDir); // Failed … … 1972 1972 1973 1973 if (pszTempDir) { 1974 DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc IDM_FINDINTREE PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug1974 //DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc IDM_FINDINTREE PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug 1975 1975 if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), 1976 1976 MPFROMLONG(1L))) … … 2359 2359 2360 2360 case IDM_RESCAN: 2361 //DosEnterCritSec(); //GKY 11-27-08 2362 dcd->stopflag++; 2363 // DosExitCritSec(); 2361 dcd->stopflag++;; 2364 2362 // DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN"); 2365 2363 if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPVOID)) { 2366 //DosEnterCritSec(); //GKY 11-27-082367 2364 dcd->stopflag--; 2368 //DosExitCritSec();2369 2365 } 2370 2366 break; … … 2498 2494 strcpy(dcd->previous, dcd->directory); 2499 2495 strcpy(dcd->directory, (CHAR *)mp2); 2500 //DosEnterCritSec(); // GKY 11-27-082501 2496 dcd->stopflag++; 2502 //DosExitCritSec();2503 2497 //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN"); 2504 2498 if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) { 2505 2499 strcpy(dcd->directory, dcd->previous); 2506 //DosEnterCritSec(); // GKY 11-27-082507 2500 dcd->stopflag--; 2508 //DosExitCritSec();2509 2501 } 2510 2502 else if (*dcd->directory) {
Note:
See TracChangeset
for help on using the changeset viewer.