580ffdf4c0
Use IFileDialog in wxDirDialog implementation if possible, it shows a much more user-friendly dialog than the one used by SHBrowseForFolder(). Closes #11401. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/msw/dirdlg.h
|
|
// Purpose: wxDirDialog class
|
|
// Author: Julian Smart
|
|
// Modified by:
|
|
// Created: 01/02/97
|
|
// RCS-ID: $Id$
|
|
// Copyright: (c) Julian Smart
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_DIRDLG_H_
|
|
#define _WX_DIRDLG_H_
|
|
|
|
class WXDLLIMPEXP_CORE wxDirDialog : public wxDirDialogBase
|
|
{
|
|
public:
|
|
wxDirDialog(wxWindow *parent,
|
|
const wxString& message = wxDirSelectorPromptStr,
|
|
const wxString& defaultPath = wxEmptyString,
|
|
long style = wxDD_DEFAULT_STYLE,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize,
|
|
const wxString& name = wxDirDialogNameStr);
|
|
|
|
void SetPath(const wxString& path);
|
|
|
|
virtual int ShowModal();
|
|
|
|
private:
|
|
// The real implementations of ShowModal(), used for Windows versions
|
|
// before and since Vista.
|
|
int ShowSHBrowseForFolder(WXHWND owner);
|
|
int ShowIFileDialog(WXHWND owner);
|
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDirDialog)
|
|
};
|
|
|
|
#endif
|
|
// _WX_DIRDLG_H_
|