MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OpenFileDialog

Function OpenFileDialog

editor/editor.cpp:1077–1079  ·  view source on GitHub ↗

A quick way to use an openfiledialog/savefiledialog. wnd = parent window filter = a C string containing the extensions to look for in filenames when browsing (in MFC format) pathname = buffer where full pathname will be stored of file opened/saved initialdir = what directory to start browsing from. will also contain the new browsing directory if user changed directories. dirlen = max length of in

Source from the content-addressed store, hash-verified

1075// user changed directories.
1076// dirlen = max length of initialdir buffer including terminating null.
1077bool OpenFileDialog(CWnd *wnd, LPCTSTR filter, char *pathname, char *initialdir, int dirlen) {
1078 return FileDialog(wnd, TRUE, filter, pathname, initialdir, dirlen);
1079}
1080
1081bool SaveFileDialog(CWnd *wnd, LPCTSTR filter, char *pathname, char *initialdir, int dirlen) {
1082 return FileDialog(wnd, FALSE, filter, pathname, initialdir, dirlen);

Callers 15

OnAddSoundMethod · 0.85
OnLoadSoundMethod · 0.85
OnImportPaletteMethod · 0.85
AddNewLevelMethod · 0.85
AddNewScriptMethod · 0.85
OnWtexdlgAddnewMethod · 0.85
OnLoadBitmapMethod · 0.85
OnAddNewSmallMethod · 0.85
OnAddNewTinyMethod · 0.85
OnAddNewHugeMethod · 0.85
OnBrowseMethod · 0.85
OnImportTinyMethod · 0.85

Calls 1

FileDialogFunction · 0.85

Tested by

no test coverage detected