]>
git.saurik.com Git - wxWidgets.git/blob - src/common/dseldlg.cpp
   1 /////////////////////////////////////////////////////////////////////////////// 
   2 // Name:        src/common/dseldlg.cpp 
   3 // Purpose:     implementation of ::wxDirSelector() 
   4 // Author:      Paul Thiessen 
   8 // Copyright:   (c) 2001 wxWidgets team 
   9 // License:     wxWindows licence 
  10 /////////////////////////////////////////////////////////////////////////////// 
  12 // ============================================================================ 
  14 // ============================================================================ 
  16 // ---------------------------------------------------------------------------- 
  18 // ---------------------------------------------------------------------------- 
  20 // For compilers that support precompilation, includes "wx.h". 
  21 #include "wx/wxprec.h" 
  29 #include "wx/dirdlg.h" 
  34 // ============================================================================ 
  36 // ============================================================================ 
  38 wxString 
wxDirSelector(const wxString
& message
, 
  39                        const wxString
& defaultPath
, 
  46     wxDirDialog 
dirDialog(parent
, message
, defaultPath
, style
, pos
); 
  47     if ( dirDialog
.ShowModal() == wxID_OK 
) 
  49         path 
= dirDialog
.GetPath(); 
  55 #endif // wxUSE_DIRDLG