X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/47d67540a017101b3e46abe9ef0f55914d8de37e..b292e2f512fa9b25e2d2928604ab884b00e6c6bf:/samples/docview/docview.cpp diff --git a/samples/docview/docview.cpp b/samples/docview/docview.cpp index ad25a56a7b..681fa2ebc0 100644 --- a/samples/docview/docview.cpp +++ b/samples/docview/docview.cpp @@ -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; }