Changeset 1865 for trunk/dll/treecnr.c
- Timestamp:
- Aug 23, 2015, 10:36:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/treecnr.c
r1862 r1865 285 285 286 286 VOID ShowTreeRec(HWND hwndCnr, 287 CHAR *pszDir_,287 PCSZ pszDir_, 288 288 BOOL collapsefirst, 289 289 BOOL maketop) … … 299 299 CHAR szDir[CCHMAXPATH]; 300 300 301 DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec pszDir_ %s", pszDir_); // 2015-08-04 SHL FIXME debug301 DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec pszDir_ \"%s\"", pszDir_); // 2015-08-04 SHL FIXME debug 302 302 303 303 // already positioned to requested record? … … 315 315 if (fSwitchTreeOnDirChg) 316 316 DosSleep(200); 317 //WaitFleshWorkListEmpty(0);318 317 319 318 // 2015-08-13 SHL add retry logic 2015-08-22 GKY increase retries from 10 to 100 to … … 353 352 TRUE); // noenv 354 353 if (!pciP || (INT)pciP == -1) { 355 DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec FindCnrRecord( %s) returned %p", szDir, pciP); // 2015-08-04 SHL FIXME debug354 DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec FindCnrRecord(\"%s\") returned %p", szDir, pciP); // 2015-08-04 SHL FIXME debug 356 355 WaitFleshWorkListEmpty(szDir); // 2015-08-19 SHL 357 356 break; // No match 358 357 } 359 358 360 DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec FindCnrRecord returned %p %s", pciP, pciP->pszFileName); // 2015-08-04 SHL FIXME debug359 DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec FindCnrRecord returned %p \"%s\"", pciP, pciP->pszFileName); // 2015-08-04 SHL FIXME debug 361 360 362 361 if (!stricmp(pszDir_, pciP->pszFileName)) { … … 367 366 368 367 if (~pciP->rc.flRecordAttr & CRA_EXPANDED) { 369 DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec expanding %s", pciP->pszFileName); // 2015-08-04 SHL FIXME debug368 DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec expanding \"%s\"", pciP->pszFileName); // 2015-08-04 SHL FIXME debug 370 369 WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciP), MPVOID); 371 370 DosSleep(100); // 2015-08-13 SHL Let PM catch up … … 388 387 } // for 389 388 390 DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec retries %u pci %p pci->pszFileName %s",retries, pci, pci && (INT)pci != -1 ? pci->pszFileName : "(null)"); // 2015-08-04 SHL FIXME debug389 DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec retries %u pci %p pci->pszFileName \"%s\"",retries, pci, pci && (INT)pci != -1 ? pci->pszFileName : "(null)"); // 2015-08-04 SHL FIXME debug 391 390 392 391 if (found) { … … 431 430 pciToSelect = pci; 432 431 if (pciToSelect && (INT) pciToSelect != -1) { 433 DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec %p fTopDir %i maketop %i", pciToSelect, fTopDir, maketop); // 2015-08-04 SHL FIXME debug 434 if (fSwitchTreeExpand && ~pciToSelect->rc.flRecordAttr & CRA_EXPANDED) 432 if (fSwitchTreeExpand && ~pciToSelect->rc.flRecordAttr & CRA_EXPANDED) { 433 // 2015-08-23 SHL FIXME debug 434 DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec WinSendMsg(CM_EXPANDTREE, %p)", pciToSelect); // 2015-08-04 SHL FIXME debug 435 435 WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciToSelect), MPVOID); 436 if (fTopDir || maketop) 436 } 437 if (fTopDir || maketop) { 438 // 2015-08-23 SHL FIXME debug 439 DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec ShowCnrRecord(%p) fTopDir %i maketop %i", pciToSelect, fTopDir, maketop); // 2015-08-04 SHL FIXME debug 437 440 ShowCnrRecord(hwndCnr, (PMINIRECORDCORE)pciToSelect); 441 } 438 442 439 443 if (!quickbail) { 440 444 WaitFleshWorkListEmpty(pszDir_); // 2015-08-19 SHL try to ensure contents stable 441 DbgMsg(pszSrcFile, __LINE__, " WinSendMsg(CM_SETRECORDEMPHASIS, CRA_SELECTED | CRA_CURSORED)\"%s\"", pszDir_); // 2015-08-04 SHL FIXME debug445 DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec WinSendMsg(CM_SETRECORDEMPHASIS, CRA_SELECTED | CRA_CURSORED) pszDir_ \"%s\"", pszDir_); // 2015-08-04 SHL FIXME debug 442 446 WinSendMsg(hwndCnr, 443 447 CM_SETRECORDEMPHASIS, … … 724 728 */ 725 729 DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc UM_SHOWME cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug 726 DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc UM_SHOWME %s)", mp1); // 2015-08-04 SHL FIXME debug730 DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc UM_SHOWME \"%s\")", mp1); // 2015-08-04 SHL FIXME debug 727 731 728 732 if (cDirectoriesRestored > 0)
Note:
See TracChangeset
for help on using the changeset viewer.