ReactOS  0.4.13-dev-982-g9853eab
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 
59  NtObjChildWndInfo(HWND hmdiclient, LPCTSTR path);
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 
88 struct FileChildWindow : public ExtContextMenuHandlerT<ChildWindow>
89 {
91 
93 
95 
96 protected:
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 
114 protected:
120 
121 public:
122  const Root& get_root() const {return _root;}
123 
124  void set_focus_pane(Pane* pane)
125  {_focus_pane = pane==_right? 1: 0;}
126 
129 };
130 
131 
133 struct ExecuteDialog {
135  int cmdshow;
136 
138 };
information structure for creation of MDIShellBrowserChild
Definition: filechild.h:44
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
MDI child window displaying file lists.
Definition: filechild.h:88
RegistryChildWndInfo(HWND hmdiclient, LPCTSTR path)
Definition: filechild.cpp:77
void set_curdir(Entry *entry)
Definition: filechild.cpp:266
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
information structure for creation of FileChildWindow for NT object namespace
Definition: filechild.h:55
ENTRY_TYPE
Definition: entries.h:29
FileChildWndInfo super
Definition: filechild.h:81
FileChildWndInfo super
Definition: filechild.h:73
Definition: ftp_var.h:139
int _focus_pane
Definition: window.h:326
static INT_PTR CALLBACK WndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam)
Definition: filechild.cpp:95
ENTRY_TYPE _etype
Definition: filechild.h:36
ShellChildWndInfo(HWND hmdiclient, LPCTSTR path, const ShellPath &root_shell_path)
Definition: filechild.cpp:63
#define CALLBACK
Definition: compat.h:27
WebChildWndInfo(HWND hmdiclient, LPCTSTR url)
Definition: filechild.cpp:89
static void collapse_entry(Pane *pane, Entry *dir)
Definition: filechild.cpp:354
HWND WINAPI SetFocus(_In_opt_ HWND)
static WCHAR String[]
Definition: stringtable.c:55
UINT_PTR WPARAM
Definition: windef.h:207
int32_t INT_PTR
Definition: typedefs.h:62
FATChildWndInfo(HWND hmdiclient, LPCTSTR path)
Definition: filechild.cpp:83
information structure for creation of a MDI child window
Definition: window.h:44
NtObjChildWndInfo(HWND hmdiclient, LPCTSTR path)
Definition: filechild.cpp:71
information structure for creation of FileChildWindow for the Registry
Definition: filechild.h:63
static UINT WPARAM LPARAM lparam
Definition: combo.c:716
LPCTSTR _path
Definition: filechild.h:37
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:570
int Notify(int id, NMHDR *pnmh)
Definition: filechild.cpp:663
LONG_PTR LPARAM
Definition: windef.h:208
void set_focus_pane(Pane *pane)
Definition: filechild.h:124
unsigned int dir
Definition: maze.c:112
bool _header_wdths_ok
Definition: filechild.h:119
void scan_entry(Entry *entry)
Definition: filechild.cpp:625
ExtContextMenuHandlerT< ChildWindow > super
Definition: filechild.h:90
char TCHAR
Definition: xmlstorage.h:189
void switch_focus_pane()
Definition: filechild.h:127
root entry for file system trees
Definition: entries.h:148
static const WCHAR url[]
Definition: encode.c:1432
child window pane for displaying file lists
Definition: pane.h:66
#define MAX_PATH
Definition: compat.h:26
virtual void resize_children(int cx, int cy)
Definition: filechild.cpp:405
information structure for creation of WebChildWindow
Definition: filechild.h:79
ShellPath _root_shell_path
Definition: filechild.h:51
uint32_t entry
Definition: isohybrid.c:63
FileChildWindow(HWND hwnd, const FileChildWndInfo &info)
Definition: filechild.cpp:124
bool expand_entry(Entry *dir)
Definition: filechild.cpp:310
FileChildWndInfo super
Definition: filechild.h:46
LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
Definition: filechild.cpp:443
FileChildWndInfo super
Definition: filechild.h:65
Definition: services.c:325
const Root & get_root() const
Definition: filechild.h:122
void activate_entry(Pane *pane)
Definition: filechild.cpp:577
unsigned int UINT
Definition: ndis.h:50
information structure for creation of FileChildWindow
Definition: filechild.h:71
The "Execute..."-dialog lets the user enter a command line to launch.
Definition: filechild.h:133
information structure for creation of FileChildWindow
Definition: filechild.h:30
_Out_opt_ int * cx
Definition: commctrl.h:570
ChildWndInfo super
Definition: filechild.h:32
static FileChildWindow * create(const FileChildWndInfo &info)
Definition: filechild.cpp:377
LONG_PTR LRESULT
Definition: windef.h:209
ShellPath _shell_path
Definition: filechild.h:50
WINDOWPLACEMENT _pos
Definition: filechild.h:39
wrapper class for item ID lists
Definition: shellclasses.h:651
base of all file and directory entries
Definition: entries.h:82
int Command(int id, int code)
Definition: filechild.cpp:553
static UINT WPARAM wparam
Definition: combo.c:716
TCHAR _path[MAX_PATH]
Definition: filechild.h:118
FileChildWndInfo super
Definition: filechild.h:57
FileChildWndInfo(HWND hmdiclient, LPCTSTR path, ENTRY_TYPE etype=ET_UNKNOWN)
Definition: filechild.cpp:35
virtual String jump_to_int(LPCTSTR url)
Definition: filechild.cpp:669