Remove unnecessary wxGrid::OnPaint()
This method was explicitly defined to do nothing, so just remove it. No real changes.
This commit is contained in:
@@ -2361,7 +2361,6 @@ protected:
|
||||
int row, int col,
|
||||
const wxMouseEvent& mouseEv);
|
||||
|
||||
void OnPaint( wxPaintEvent& );
|
||||
void OnSize( wxSizeEvent& );
|
||||
void OnKeyDown( wxKeyEvent& );
|
||||
void OnKeyUp( wxKeyEvent& );
|
||||
|
@@ -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...
|
||||
|
Reference in New Issue
Block a user