Changeset 1882
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/flesh.c
r1880 r1882 79 79 #include "common.h" // IncrThreadUsage DecrThreadUsage 80 80 #include "pathutil.h" 81 #include "treecnr.h" // fExpandAll82 81 #if 0 83 82 #define __PMPRINTF__ -
trunk/dll/select.c
r1874 r1882 72 72 #include "fortify.h" 73 73 #include "flesh.h" 74 #include "treecnr.h" // fExpandAll 74 75 #if 0 75 76 #define __PMPRINTF__ … … 599 600 fExpanding = TRUE; 600 601 if (IsFleshWorkListEmpty()) 601 DosSleep( 0); // Yield to EXPANDTREE and Flesh thread602 DosSleep(fExpandAll ? 0 : 10); // Yield to EXPANDTREE and Flesh thread 602 603 if (!IsFleshWorkListEmpty()) { 603 WaitFleshWorkListEmpty(NULL, 10); // Let it expand604 WaitFleshWorkListEmpty(NULL, fExpandAll ? 1 : 50); // Let it expand 604 605 } 605 606 } … … 608 609 ExpandAll(hwndCnr, count, pci); 609 610 if (count != 0 && !IsFleshWorkListEmpty()) 610 WaitFleshWorkListEmpty(NULL, 10); // Wait for container to catch up611 WaitFleshWorkListEmpty(NULL, fExpandAll ? 1 : 50); // Wait for container to catch up 611 612 pci = (PCNRITEM) WinSendMsg(hwndCnr, CM_QUERYRECORD, MPFROMP(pci), 612 613 MPFROM2SHORT(CMA_NEXT, CMA_ITEMORDER)); -
trunk/dll/treecnr.c
r1880 r1882 795 795 INT x = 0; 796 796 BOOL fExpanding = TRUE; 797 797 PCNRITEM pci = (PCNRITEM) mp2; 798 799 if (!pci) { 800 Runtime_Error(pszSrcFile, __LINE__, NULL); 801 return 0; 802 } 798 803 dcd->suspendview = TRUE; 799 804 priority_idle(); 800 805 if (SHORT1FROMMP(mp1) == IDM_EXPAND) { 801 fExpandAll = TRUE; 806 if (!(driveflags[toupper(*pci->pszFileName) - 'A'] & DRIVE_REMOVABLE)) 807 fExpandAll = TRUE; 802 808 while (fExpanding) { // Not serialized not practical to wait on very large directories 803 809 x++; 804 810 if (!IsFleshWorkListEmpty()) { 805 WaitFleshWorkListEmpty(NULL, 10); // Let it expand811 WaitFleshWorkListEmpty(NULL, fExpandAll ? 1 : 50); // Let it expand 806 812 } 807 fExpanding = ExpandAll(dcd->hwndCnr, x, (PCNRITEM) mp2);813 fExpanding = ExpandAll(dcd->hwndCnr, x, pci); 808 814 DosSleep(240); 809 815 } … … 811 817 } 812 818 else 813 CollapseAll(dcd->hwndCnr, (PCNRITEM) mp2);819 CollapseAll(dcd->hwndCnr, pci); 814 820 priority_normal(); 815 821 DosSleep(1); // Fixes tree epansion (dir text and icons all placed on
Note:
See TracChangeset
for help on using the changeset viewer.