Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATApp::OpenFileDialog
CATResult CATApp::OpenFileDialog ( const CATString title,
std::vector< CATString > &  filetypeList,
CATString returnPath,
CATWindow parentWnd = 0 
) [virtual]

OpenFileDialog() displays an open file dialog and returns the selected file path, if any.

Parameters:
title - title string
filetypeList - list of file type / extension pairs. std::map<filename, filemask>, e.g. std::map.Insert("Session files","*.drum_sess")
returnPath - ref to string to fill with received file path, if any. when called, this is also used as the default file name.
parentWnd - parent window ofof dialog

Definition at line 32 of file CATApp_Win32.cpp.

References CAT_ERR_FILEOPEN_CANCELLED, CAT_SUCCESS, CATRESULT, CATString::GetUnicodeBuffer(), CATString::GetWChar(), CATString::Length(), CATWindow::OSGetWnd(), and CATString::ReleaseBuffer().

Referenced by GASPilot::OnCommand().


Generated on Mon Feb 11 04:10:14 2008 for Game Accessibility Suite by doxygen 1.5.4