dirdlg.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/msw/dirdlg.h
  3. // Purpose: wxDirDialog class
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created: 01/02/97
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_DIRDLG_H_
  11. #define _WX_DIRDLG_H_
  12. class WXDLLIMPEXP_CORE wxDirDialog : public wxDirDialogBase
  13. {
  14. public:
  15. wxDirDialog(wxWindow *parent,
  16. const wxString& message = wxDirSelectorPromptStr,
  17. const wxString& defaultPath = wxEmptyString,
  18. long style = wxDD_DEFAULT_STYLE,
  19. const wxPoint& pos = wxDefaultPosition,
  20. const wxSize& size = wxDefaultSize,
  21. const wxString& name = wxDirDialogNameStr);
  22. void SetPath(const wxString& path);
  23. virtual int ShowModal();
  24. private:
  25. // The real implementations of ShowModal(), used for Windows versions
  26. // before and since Vista.
  27. int ShowSHBrowseForFolder(WXHWND owner);
  28. int ShowIFileDialog(WXHWND owner);
  29. DECLARE_DYNAMIC_CLASS_NO_COPY(wxDirDialog)
  30. };
  31. #endif
  32. // _WX_DIRDLG_H_