Use wxBG_STYLE_PAINT for wxGridWindow

This is more explicit, efficient and simpler than defining an empty
wxEVT_ERASE_BACKGROUND handler, which is not needed any longer.
This commit is contained in:
Vadim Zeitlin
2020-01-24 02:33:40 +01:00
parent a5807b8fcf
commit e671386d1a
2 changed files with 1 additions and 6 deletions

View File

@@ -419,6 +419,7 @@ public:
"GridWindow"),
m_type(type)
{
SetBackgroundStyle(wxBG_STYLE_PAINT);
}
@@ -437,7 +438,6 @@ private:
void OnKeyDown( wxKeyEvent& );
void OnKeyUp( wxKeyEvent& );
void OnChar( wxKeyEvent& );
void OnEraseBackground( wxEraseEvent& );
void OnFocus( wxFocusEvent& );
wxDECLARE_EVENT_TABLE();