]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docview/docview.cpp
internal browser creates temp file in current dir, safer if /tmp doesn't
[wxWidgets.git] / samples / docview / docview.cpp
index ad25a56a7b4bc544fa73882eabddfbe858352b90..681fa2ebc00d93c8a8351f97b517b03599d7bf86 100644 (file)
@@ -31,7 +31,7 @@
 #include "wx/wx.h"
 #endif
 
-#if !USE_DOC_VIEW_ARCHITECTURE
+#if !wxUSE_DOC_VIEW_ARCHITECTURE
 #error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
 #endif
 
@@ -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;
 }