2002-07-03 19:32:52 +00:00
|
|
|
/*
|
2002-07-06 02:44:16 +00:00
|
|
|
* ReactOS winfile
|
2002-07-03 19:32:52 +00:00
|
|
|
*
|
2002-07-06 02:44:16 +00:00
|
|
|
* utils.h
|
2002-07-03 19:32:52 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*/
|
|
|
|
|
2002-07-06 02:44:16 +00:00
|
|
|
#ifndef __UTILS_H__
|
|
|
|
#define __UTILS_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2002-07-09 19:46:14 +00:00
|
|
|
void display_error(HWND hWnd, DWORD error);
|
|
|
|
void frame_get_clientspace(HWND hWnd, PRECT prect);
|
|
|
|
BOOL toggle_fullscreen(HWND hWnd);
|
|
|
|
void fullscreen_move(HWND hWnd);
|
2002-07-06 02:44:16 +00:00
|
|
|
|
|
|
|
BOOL calc_widths(Pane* pane, BOOL anyway);
|
|
|
|
void calc_single_width(Pane* pane, int col);
|
|
|
|
void read_directory(Entry* parent, LPCTSTR path, int sortOrder);
|
|
|
|
int is_registered_type(LPCTSTR ext);
|
|
|
|
int is_exe_file(LPCTSTR ext);
|
|
|
|
void set_curdir(ChildWnd* child, Entry* entry);
|
|
|
|
void get_path(Entry* dir, PTSTR path);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
};
|
2002-07-03 19:32:52 +00:00
|
|
|
#endif
|
|
|
|
|
2002-07-06 02:44:16 +00:00
|
|
|
#endif // __UTILS_H__
|