Added check for Refresh function.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2002-09-07 20:16:02 +00:00
parent a66a391e70
commit 2918e2d254

View 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);
}
}