Changeset 1871 for trunk/dll/dircnrs.h


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/dircnrs.h

    r1682 r1871  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2001, 2008 Steven H. Levine
     9  Copyright (c) 2001, 2015 Steven H. Levine
    1010
    1111  05 Jan 08 SHL Move dircnrs.c definitions here
     
    1414                all the details view settings (both the global variables and those in the
    1515                DIRCNRDATA struct) into a new struct: DETAILS_SETTINGS.
    16   17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
     16  17 Jan 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
     17  20 Sep 15 GKY Add a flag to indicate when a directory needed to be Fleshed and a PCNRITEM
     18                previous to try to keep the pci chain intact on renames, delete etc to PCNRITEM
    1719
    1820***********************************************************************/
     
    4042
    4143typedef struct _CNRITEM
    42 {                               /* CONTAINER RECORD STRUCTURE */
     44{                               /* CONTAINER RECORD STRUCTURE must be first*/
    4345  MINIRECORDCORE rc;            /* Base information */
    4446  HWND hwndCnr;                 /* The container holding this record */
     
    5961  ULONG attrFile;               /* Attributes of this file */
    6062  ULONG flags;
     63  BOOL fleshed;
     64  struct _CNRITEM *pciPrevious;    // Address of pci we are linked to
    6165}
    6266CNRITEM, *PCNRITEM;
Note: See TracChangeset for help on using the changeset viewer.