6 * Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 #endif // _MSC_VER > 1000
36 typedef struct _Entry
{
47 #ifndef _NO_EXTENSIONS
48 BY_HANDLE_FILE_INFORMATION bhfi
;
62 //enum SORT_ORDER { SORT_BY_NAME, SORT_BY_TYPE, SORT_BY_SIZE, SORT_BY_DATE };
67 TCHAR volname
[_MAX_FNAME
];
76 #ifndef _NO_EXTENSIONS
80 #ifndef _NO_EXTENSIONS
86 int positions
[COLUMNS
+1];
98 int focus_pane
; // 0: left 1: right
101 BOOL header_wdths_ok
;
103 TCHAR path
[MAX_PATH
];
106 SORT_ORDER sortOrder
;
110 void insert_entries(Pane
* pane
, Entry
* parent
, int idx
);
111 void scan_entry(ChildWnd
* child
, Entry
* entry
);
112 void activate_entry(ChildWnd
* child
, Pane
* pane
);
113 void collapse_entry(Pane
* pane
, Entry
* dir
);
114 BOOL
expand_entry(ChildWnd
* child
, Entry
* dir
);
115 Entry
* find_entry_win(Entry
* parent
, LPCTSTR name
);
116 void free_entries(Entry
* parent
);
117 Entry
* read_tree_win(Root
* root
, LPCTSTR path
, int sortOrder
);
125 #endif // __ENTRIES_H__