X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c757b5fee093bbc3686f1e474316396b742fb888..2ef989c972df0bd023ec3b7252fb91afca55f8ab:/include/wx/generic/filepickerg.h?ds=sidebyside diff --git a/include/wx/generic/filepickerg.h b/include/wx/generic/filepickerg.h index ec23c505bd..ee1e83910b 100644 --- a/include/wx/generic/filepickerg.h +++ b/include/wx/generic/filepickerg.h @@ -48,6 +48,8 @@ public: virtual ~wxGenericFileDirButton() {} + virtual wxControl *AsControl() { return this; } + public: // overrideable virtual wxDialog *CreateDialog() = 0; @@ -178,7 +180,7 @@ public: // overrideable virtual long GetDialogStyle() const { - long dirdlgstyle = 0; + long dirdlgstyle = wxDD_DEFAULT_STYLE; if (this->HasFlag(wxDIRP_DIR_MUST_EXIST)) dirdlgstyle |= wxDD_DIR_MUST_EXIST;