]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/dirctrl.cpp
use wxFD_XXX instead of deprecated wxXXX in the documentation
[wxWidgets.git] / samples / widgets / dirctrl.cpp
index 6995b79e510a405591a711f3b21fa440ad6dae24..472416f3edbc48150cfda315700c0e2b4b30209e 100644 (file)
 
 // for all others, include the necessary headers
 #ifndef WX_PRECOMP
+    #include "wx/app.h"
+    #include "wx/log.h"
     #include "wx/sizer.h"
     #include "wx/statbox.h"
     #include "wx/radiobox.h"
     #include "wx/checkbox.h"
     #include "wx/button.h"
-    #include "wx/app.h"
 #endif
 
 #include "wx/generic/dirctrlg.h"
 
 #include "wx/wupdlock.h"
 #include "wx/stdpaths.h"
-#include "wx/msgdlg.h"
 
 #include "widgets.h"
 
@@ -216,8 +216,6 @@ void DirCtrlWidgetsPage::CreateContent()
     Reset();
 
     SetSizer(sizerTop);
-
-    sizerTop->Fit(this);
 }
 
 void DirCtrlWidgetsPage::Reset()