]> git.saurik.com Git - wxWidgets.git/commitdiff
Added check for Refresh function.
authorStefan Neis <Stefan.Neis@t-online.de>
Sat, 7 Sep 2002 20:16:02 +0000 (20:16 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sat, 7 Sep 2002 20:16:02 +0000 (20:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/newgrid/griddemo.cpp

index d4ba949a91c4cd875fdc784953f1cc8f07d8237f..5557e3743ca122c2ee9184c4585bf97bae077733 100644 (file)
@@ -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);
     }
 }