1 #ifndef _WDL_FILEBROWSE_H_
2 #define _WDL_FILEBROWSE_H_
7 #include "swell/swell.h"
11 bool WDL_ChooseDirectory(HWND parent
, const char *text
, const char *initialdir
, char *fn
, int fnsize
, bool preservecwd
);
12 bool WDL_ChooseFileForSave(HWND parent
,
14 const char *initialdir
,
15 const char *initialfile
,
21 const char *dlgid
=NULL
,
24 HINSTANCE hInstance
=NULL
26 struct SWELL_DialogResourceIndex
*reshead
=NULL
31 char *WDL_ChooseFileForOpen(HWND parent
,
33 const char *initialdir
,
34 const char *initialfile
,
41 const char *dlgid
=NULL
,
44 HINSTANCE hInstance
=NULL
46 struct SWELL_DialogResourceIndex
*reshead
=NULL
51 // allowmul=1: multi-selection in same folder,
52 // the double NULL terminated return value of WDL_ChooseFileForOpen2 is like:
53 // "some/single/path\0bla1.txt\0bla2.txt\0bla3.txt\0\0"
54 // allowmul=2: multi-selection with multipath support (vista+)
55 // the double NULL terminated return value of WDL_ChooseFileForOpen2 is like:
56 // "\0/some/path1/bla1.txt\0/some/path2/bla2.txt\0/some/path3/bla3.txt\0\0"
57 char *WDL_ChooseFileForOpen2(HWND parent
,
59 const char *initialdir
,
60 const char *initialfile
,
67 const char *dlgid
=NULL
,
70 HINSTANCE hInstance
=NULL
72 struct SWELL_DialogResourceIndex
*reshead
=NULL