]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docview/docview.cpp
CodeWarrior Support (no defines in project possible)
[wxWidgets.git] / samples / docview / docview.cpp
index 1d814fd140c3b52d3882b440e8b95029424e128d..681fa2ebc00d93c8a8351f97b517b03599d7bf86 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 wx_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;
 }