]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/filepickerg.h
STL compilation fix
[wxWidgets.git] / include / wx / generic / filepickerg.h
index ec23c505bdce0002e2ebe994f250cfd2f7591e93..ee1e83910b46fe7ca0e253741d7f0a96be90f6a7 100644 (file)
@@ -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;