]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docview/docview.cpp
bugs in splitter docs corrected
[wxWidgets.git] / samples / docview / docview.cpp
index 53699369c12304a9627f27f813998cf808482ee6..6204548013608e99c4616fec31be457552fbe874 100644 (file)
@@ -32,7 +32,7 @@
 #endif
 
 #if !wxUSE_DOC_VIEW_ARCHITECTURE
-#error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
+#error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in setup.h!
 #endif
 
 #include "wx/docview.h"
@@ -257,6 +257,8 @@ MyCanvas *MyFrame::CreateCanvas(wxView *view, wxFrame *parent)
 
   // Give it scrollbars
   canvas->SetScrollbars(20, 20, 50, 50);
+  canvas->SetBackgroundColour(*wxWHITE);
+  canvas->Clear();
 
   return canvas;
 }