#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
-#include "wx/defs.h"
-
#if wxUSE_DIRDLG
#ifndef WX_PRECOMP
const wxString& defaultPath, long style,
const wxPoint& pos, const wxSize& sz,
const wxString& name):
- wxDialog(parent, ID_DIRCTRL, title, pos, sz, style, name)
+ wxDirDialogBase(parent, title, defaultPath, style, pos, sz, name)
+{
+ Create(parent, title, defaultPath, style, pos, sz, name);
+}
+
+bool wxGenericDirDialog::Create(wxWindow* WXUNUSED(parent),
+ const wxString& WXUNUSED(title),
+ const wxString& defaultPath, long style,
+ const wxPoint& WXUNUSED(pos),
+ const wxSize& WXUNUSED(sz),
+ const wxString& WXUNUSED(name))
{
wxBusyCursor cursor;
SetAutoLayout( true );
SetSizer( topsizer );
-#if !defined(__SMARTPHONE__) && !defined(__POCKETPC__)
topsizer->SetSizeHints( this );
topsizer->Fit( this );
Centre( wxBOTH );
-#endif
+
+ return true;
}
void wxGenericDirDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event))