From 04b6e2f0c1a6a838e26296b0f39cdb6b5231bdb2 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 9 Aug 2004 23:08:20 +0000 Subject: [PATCH] All wxScrolledWindows shoudl have wxHSCROLL|wxVSCROLL now. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/prntbase.cpp | 2 +- src/generic/scrlwing.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index 8216a1578e..bb29c3e968 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -190,7 +190,7 @@ void wxPrintout::GetPageInfo(int *minPage, int *maxPage, int *fromPage, int *toP // this style it simply doesn't work correctly at all... wxPreviewCanvas::wxPreviewCanvas(wxPrintPreviewBase *preview, wxWindow *parent, const wxPoint& pos, const wxSize& size, long style, const wxString& name): -wxScrolledWindow(parent, -1, pos, size, style | wxFULL_REPAINT_ON_RESIZE | wxVSCROLL | wxHSCROLL, name) +wxScrolledWindow(parent, -1, pos, size, style | wxFULL_REPAINT_ON_RESIZE, name) { m_printPreview = preview; #ifdef __WXMAC__ diff --git a/src/generic/scrlwing.cpp b/src/generic/scrlwing.cpp index 785629edb5..ba82747eb1 100644 --- a/src/generic/scrlwing.cpp +++ b/src/generic/scrlwing.cpp @@ -1213,7 +1213,7 @@ bool wxGenericScrolledWindow::Create(wxWindow *parent, { m_targetWindow = this; - bool ok = wxPanel::Create(parent, id, pos, size, style, name); + bool ok = wxPanel::Create(parent, id, pos, size, style|wxHSCROLL|wxVSCROLL, name); return ok; }