]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docview/docview.cpp
Correxted myfixed widget to prevent warnings from GTK
[wxWidgets.git] / samples / docview / docview.cpp
index 1d814fd140c3b52d3882b440e8b95029424e128d..6204548013608e99c4616fec31be457552fbe874 100644 (file)
@@ -31,8 +31,8 @@
 #include "wx/wx.h"
 #endif
 
-#if !USE_DOC_VIEW_ARCHITECTURE
-#error You must set USE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
+#if !wxUSE_DOC_VIEW_ARCHITECTURE
+#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;
 }