source: trunk/dll/treecnr.h@ 1871

Last change on this file since 1871 was 1871, checked in by Gregg Young, 10 years ago

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.

  • Property svn:eolstyle set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1
2/***********************************************************************
3
4 $Id: treecnr.h 1871 2015-09-20 22:57:02Z gyoung $
5
6 <<<description here>>>
7
8 Copyright (c) 1993-98 M. Kimes
9 Copyright (c) 2008 Steven H. Levine
10
11 Change log
12 28 Dec 08 GKY Check for LVM.EXE and remove Refresh removable media menu item as appropriate
13 28 Dec 08 GKY Rework partition submenu to gray out unavailable items (check for existence of files)
14 and have no default choice.
15 23 Aug 15 SHL Protect ShowTreeRec dirname arg
16 24 AUG 15 GKY Remove fDummy code
17 20 Sep 15 GKY Move tree expand to a thread.
18
19***********************************************************************/
20
21#if !defined(TREECNR_H)
22#define TREECNR_H
23
24MRESULT EXPENTRY OpenButtonProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
25VOID ShowTreeRec(HWND hwndCnr, PCSZ dirname, BOOL collapsefirst, BOOL maketop);
26HWND StartTreeCnr(HWND hwndParent, ULONG flags);
27MRESULT EXPENTRY TreeClientWndProc(HWND hwnd, ULONG msg, MPARAM mp1,
28 MPARAM mp2);
29MRESULT EXPENTRY TreeObjWndProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
30MRESULT EXPENTRY TreeStatProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
31BOOL StartExpandTreeThread();
32
33// Data declarations
34extern ULONG FM3UL;
35extern HWND LastDir;
36extern HWND TreeCnrMenu;
37extern INT TreesortFlags;
38extern INT driveserial[26];
39extern BOOL fDCOpens;
40extern BOOL fFollowTree;
41extern BOOL fTopDir;
42extern BOOL fLVMGui;
43extern BOOL fDFSee;
44extern BOOL fFDisk;
45extern BOOL fMiniLVM;
46extern BOOL fLVM;
47extern HPOINTER hptrDunno;
48extern HWND hwndMainMenu;
49
50#endif // TREECNR_H
Note: See TracBrowser for help on using the repository browser.