From 2918e2d254bac8945bb059239eb09478345d07f3 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sat, 7 Sep 2002 20:16:02 +0000 Subject: [PATCH] Added check for Refresh function. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/newgrid/griddemo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/newgrid/griddemo.cpp b/samples/newgrid/griddemo.cpp index d4ba949a91..5557e3743c 100644 --- a/samples/newgrid/griddemo.cpp +++ b/samples/newgrid/griddemo.cpp @@ -699,8 +699,11 @@ void GridFrame::SetCellBgColour( wxCommandEvent& WXUNUSED(ev) ) wxColour col = wxGetColourFromUser(this); if ( col.Ok() ) { + // Check the new Refresh function by passing it a rectangle + // which exactly fits the grid. + wxRect r(wxPoint(0, 0), grid->GetSize()); grid->SetDefaultCellBackgroundColour(col); - grid->Refresh(); + grid->Refresh(TRUE, &r); } } -- 2.50.0