Changeset 1871 for trunk/dll/objcnr.c


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

Create CollapseAll and modify ExpandAll to reduce code overhead both to try and speed drive expansion. Change ExpandAll to allow it to loop in UM_EXPAND until until drive is completely expanded. Changes were need to work with Flesh, Stubby and UnFlesh being moved to a thread. Add code for Flesh to skip the directory entry added by Stubby (eliminate use of NULL/Nullstr pszFileNames by Stubby). Add code in Stubby to insert a complete container item. Add a flag to indicate when a directory needed to be Fleshed. Get expand and switch code to work with Flesh, UnFlesh and Stubby running on a thread. Loop and idle ExpandAll; Move tree expand to a thread; Have ShowTreeRec wait for the Flesh thread. Add a correction factor so directories don't get placed above the top of the tree container when a large drive has been expanded. Debug is mostly still in but all turned off.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/objcnr.c

    r1673 r1871  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2005, 2009 Steven H. Levine
     9  Copyright (c) 2005, 2015 Steven H. Levine
    1010
    1111  24 May 05 SHL Rework for CNRITEM.szSubject
     
    2525  08 Mar 09 GKY Additional strings move to PCSZs
    2626  28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
     27  20 Sep 15 GKY Update for modified ExpandAll
    2728
    2829***********************************************************************/
     
    365366                                                        CMA_ITEMORDER));
    366367        if (pci && (INT) pci != -1) {
    367           ExpandAll(WinWindowFromID(hwnd, OBJCNR_CNR), TRUE, pci);
     368          ExpandAll(WinWindowFromID(hwnd, OBJCNR_CNR), 0, pci);
    368369          if (id == QTREE_FRAME)
    369370            pci = (PCNRITEM) WinSendDlgItemMsg(hwnd, OBJCNR_CNR,
Note: See TracChangeset for help on using the changeset viewer.