ReactOS 0.4.16-dev-88-ga65b6ae
filechild.h
Go to the documentation of this file.
1/*
2 * Copyright 2003, 2004 Martin Fuchs
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19
20 //
21 // Explorer clone
22 //
23 // filechild.h
24 //
25 // Martin Fuchs, 23.07.2003
26 //
27
28
31{
33
35
38
40 int _open_mode; //OPEN_WINDOW_MODE
41};
42
45{
47
48 ShellChildWndInfo(HWND hmdiclient, LPCTSTR path, const ShellPath& root_shell_path);
49
52};
53
56{
58
60};
61
64{
66
68};
69
72{
74
75 FATChildWndInfo(HWND hmdiclient, LPCTSTR path);
76};
77
80{
82
83 WebChildWndInfo(HWND hmdiclient, LPCTSTR url);
84};
85
86
88struct FileChildWindow : public ExtContextMenuHandlerT<ChildWindow>
89{
91
93
95
96protected:
98 int Command(int id, int code);
99 int Notify(int id, NMHDR* pnmh);
100
101 virtual void resize_children(int cx, int cy);
102 virtual String jump_to_int(LPCTSTR url);
103
104 void scan_entry(Entry* entry);
105
106 bool expand_entry(Entry* dir);
107 static void collapse_entry(Pane* pane, Entry* dir);
108
109 void set_curdir(Entry* entry);
110 void activate_entry(Pane* pane);
111
112 void refresh();
113
114protected:
120
121public:
122 const Root& get_root() const {return _root;}
123
125 {_focus_pane = pane==_right? 1: 0;}
126
129};
130
131
136
138};
@ lparam
Definition: SystemMenu.c:31
@ wparam
Definition: SystemMenu.c:30
unsigned int dir
Definition: maze.c:112
#define MAX_PATH
Definition: compat.h:34
#define CALLBACK
Definition: compat.h:35
ENTRY_TYPE
Definition: entries.h:29
@ ET_UNKNOWN
Definition: entries.h:30
uint32_t entry
Definition: isohybrid.c:63
static const WCHAR url[]
Definition: encode.c:1432
static const struct access_res create[16]
Definition: package.c:7505
unsigned int UINT
Definition: ndis.h:50
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:586
_Out_opt_ int * cx
Definition: commctrl.h:585
int _focus_pane
Definition: window.h:326
information structure for creation of a MDI child window
Definition: window.h:45
Definition: shell.h:41
base of all file and directory entries
Definition: entries.h:83
The "Execute..."-dialog lets the user enter a command line to launch.
Definition: filechild.h:133
static INT_PTR CALLBACK WndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam)
Definition: filechild.cpp:95
information structure for creation of FileChildWindow
Definition: filechild.h:72
FileChildWndInfo super
Definition: filechild.h:73
MDI child window displaying file lists.
Definition: filechild.h:89
void set_curdir(Entry *entry)
Definition: filechild.cpp:266
TCHAR _path[MAX_PATH]
Definition: filechild.h:118
void set_focus_pane(Pane *pane)
Definition: filechild.h:124
ExtContextMenuHandlerT< ChildWindow > super
Definition: filechild.h:90
void activate_entry(Pane *pane)
Definition: filechild.cpp:577
bool expand_entry(Entry *dir)
Definition: filechild.cpp:310
void scan_entry(Entry *entry)
Definition: filechild.cpp:625
int Notify(int id, NMHDR *pnmh)
Definition: filechild.cpp:663
void switch_focus_pane()
Definition: filechild.h:127
bool _header_wdths_ok
Definition: filechild.h:119
static void collapse_entry(Pane *pane, Entry *dir)
Definition: filechild.cpp:354
LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
Definition: filechild.cpp:443
const Root & get_root() const
Definition: filechild.h:122
virtual void resize_children(int cx, int cy)
Definition: filechild.cpp:405
virtual String jump_to_int(LPCTSTR url)
Definition: filechild.cpp:669
information structure for creation of FileChildWindow
Definition: filechild.h:31
ChildWndInfo super
Definition: filechild.h:32
WINDOWPLACEMENT _pos
Definition: filechild.h:39
LPCTSTR _path
Definition: filechild.h:37
ENTRY_TYPE _etype
Definition: filechild.h:36
information structure for creation of FileChildWindow for NT object namespace
Definition: filechild.h:56
FileChildWndInfo super
Definition: filechild.h:57
child window pane for displaying file lists
Definition: pane.h:67
information structure for creation of FileChildWindow for the Registry
Definition: filechild.h:64
FileChildWndInfo super
Definition: filechild.h:65
root entry for file system trees
Definition: entries.h:148
information structure for creation of MDIShellBrowserChild
Definition: filechild.h:45
ShellPath _root_shell_path
Definition: filechild.h:51
FileChildWndInfo super
Definition: filechild.h:46
ShellPath _shell_path
Definition: filechild.h:50
wrapper class for item ID lists
Definition: shellclasses.h:652
information structure for creation of WebChildWindow
Definition: filechild.h:80
FileChildWndInfo super
Definition: filechild.h:81
Definition: ftp_var.h:139
Definition: inflate.c:139
int32_t INT_PTR
Definition: typedefs.h:64
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2433
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207
HWND WINAPI SetFocus(_In_opt_ HWND)
char TCHAR
Definition: xmlstorage.h:189
const CHAR * LPCTSTR
Definition: xmlstorage.h:193