#include "wx/dirdlg.h"
-extern WXDLLEXPORT_DATA(const wxEventType) wxEVT_COMMAND_DIRPICKER_CHANGED;
-extern WXDLLEXPORT_DATA(const wxEventType) wxEVT_COMMAND_FILEPICKER_CHANGED;
+extern WXDLLIMPEXP_DATA_CORE(const wxEventType) wxEVT_COMMAND_DIRPICKER_CHANGED;
+extern WXDLLIMPEXP_DATA_CORE(const wxEventType) wxEVT_COMMAND_FILEPICKER_CHANGED;
//-----------------------------------------------------------------------------
virtual ~wxGenericFileDirButton() {}
+ virtual wxControl *AsControl() { return this; }
+
public: // overrideable
virtual wxDialog *CreateDialog() = 0;
virtual long GetDialogStyle() const
{
- long dirdlgstyle = 0;
+ long dirdlgstyle = wxDD_DEFAULT_STYLE;
if (this->HasFlag(wxDIRP_DIR_MUST_EXIST))
dirdlgstyle |= wxDD_DIR_MUST_EXIST;