diff --git a/include/wx/generic/grid.h b/include/wx/generic/grid.h index 7ea0c4d938..2ef5d324dd 100644 --- a/include/wx/generic/grid.h +++ b/include/wx/generic/grid.h @@ -2361,7 +2361,6 @@ protected: int row, int col, const wxMouseEvent& mouseEv); - void OnPaint( wxPaintEvent& ); void OnSize( wxSizeEvent& ); void OnKeyDown( wxKeyEvent& ); void OnKeyUp( wxKeyEvent& ); diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 54259e898b..836d8d2ad1 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -2321,7 +2321,6 @@ void wxGridWindow::OnFocus(wxFocusEvent& event) ///////////////////////////////////////////////////////////////////// wxBEGIN_EVENT_TABLE( wxGrid, wxScrolledCanvas ) - EVT_PAINT( wxGrid::OnPaint ) EVT_SIZE( wxGrid::OnSize ) EVT_KEY_DOWN( wxGrid::OnKeyDown ) EVT_KEY_UP( wxGrid::OnKeyUp ) @@ -5267,12 +5266,6 @@ wxGrid::SendEvent(wxEventType type, int row, int col, const wxString& s) return claimed ? 1 : 0; } -void wxGrid::OnPaint( wxPaintEvent& WXUNUSED(event) ) -{ - // needed to prevent zillions of paint events on MSW - wxPaintDC dc(this); -} - void wxGrid::Refresh(bool eraseb, const wxRect* rect) { // Don't do anything if between Begin/EndBatch...