星期五, 十二月 15, 2006

wxDirSelector

wxString wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
const wxString& default_path = "", long style = 0, const wxPoint& pos = wxDefaultPosition, wxWindow *parent = NULL)


Pops up a directory selector dialog. The arguments have the same meaning as those of wxDirDialog::wxDirDialog(). The message is displayed at the top, and the default_path, if specified, is set as the initial selection.

The application must check for an empty return value (if the user pressed Cancel). For example:

const wxString& dir = wxDirSelector("Choose a folder");
if ( !dir.empty() )
{
...
}



0 意見:

 
template hacks by: [ METAMUSE ]