35fef0c120c62bfca6ec7f81a8f6c5a0a8bc03c5
[reactos.git] / rosapps / winfile / utils.h
1 /*
2 * ReactOS winfile
3 *
4 * utils.h
5 *
6 * Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
7 *
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.
12 *
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.
17 *
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.
21 */
22
23 #ifndef __UTILS_H__
24 #define __UTILS_H__
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30
31 void display_error(HWND hWnd, DWORD error);
32 void frame_get_clientspace(HWND hWnd, PRECT prect);
33 BOOL toggle_fullscreen(HWND hWnd);
34 void fullscreen_move(HWND hWnd);
35
36 BOOL calc_widths(Pane* pane, BOOL anyway);
37 void calc_single_width(Pane* pane, int col);
38 void read_directory(Entry* parent, LPCTSTR path, int sortOrder);
39 int is_registered_type(LPCTSTR ext);
40 int is_exe_file(LPCTSTR ext);
41 void set_curdir(ChildWnd* child, Entry* entry);
42 void get_path(Entry* dir, PTSTR path);
43
44
45
46 #ifdef __cplusplus
47 };
48 #endif
49
50 #endif // __UTILS_H__