]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docview/docview.cpp
correcting a missing redraw area on certain resize operations when window has a border
[wxWidgets.git] / samples / docview / docview.cpp
index bb9694906ad9493b98fc2751c89eca7706982fe3..e68dd48d7c203b23a2a9680f82cfe26b9d3e6d71 100644 (file)
@@ -91,7 +91,7 @@ bool MyApp::OnInit(void)
     else
     {
         //// Create a template relating text documents to their views
-        (void) new wxDocTemplate(m_docManager, _T("Text"), _T("*.txt"), _T(""), _T("txt"), _T("Text Doc"), _T("Text View"),
+        (void) new wxDocTemplate(m_docManager, _T("Text"), _T("*.txt;*.text"), _T(""), _T("txt;text"), _T("Text Doc"), _T("Text View"),
         CLASSINFO(TextEditDocument), CLASSINFO(TextEditView));
 #ifdef __WXMAC__
         wxFileName::MacRegisterDefaultTypeAndCreator( "txt" , 'TEXT' , 'WXMA' ) ;
@@ -269,7 +269,7 @@ MyCanvas *MyFrame::CreateCanvas(wxView *view, wxFrame *parent)
     // Give it scrollbars
     canvas->SetScrollbars(20, 20, 50, 50);
     canvas->SetBackgroundColour(*wxWHITE);
-    canvas->Clear();
+    canvas->ClearBackground();
     
     return canvas;
 }