redraw the grid when it's enabled/disabled

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-02-09 22:31:30 +00:00
parent 241421a60d
commit bf6461219d
2 changed files with 14 additions and 0 deletions

View File

@@ -7524,6 +7524,16 @@ void wxGrid::ForceRefresh()
EndBatch();
}
bool wxGrid::Enable(bool enable)
{
if ( !wxScrolledWindow::Enable(enable) )
return false;
// redraw in the new state
m_gridWin->Refresh();
return true;
}
//
// ------ Edit control functions