Remove erase background event handlers, in favor of SetBackgroundStyle.

This commit is contained in:
Twan van Laarhoven
2020-05-16 01:56:17 +02:00
parent dbe6fbd33b
commit 92fbb9ea10
17 changed files with 38 additions and 38 deletions
+4 -2
View File
@@ -48,7 +48,10 @@ SetWindow::SetWindow(Window* parent, const SetP& set)
, number_of_recent_sets(0)
{
SetIcon(load_resource_icon(_("app")));
// avoid flicker
SetBackgroundStyle(wxBG_STYLE_PAINT);
// initialize menu bar
auto menuBar = new wxMenuBar();
auto menuFile = new wxMenu();
@@ -899,5 +902,4 @@ BEGIN_EVENT_TABLE(SetWindow, wxFrame)
EVT_CARD_SELECT (wxID_ANY, SetWindow::onCardSelect)
EVT_CARD_ACTIVATE (wxID_ANY, SetWindow::onCardActivate)
EVT_SIZE_CHANGE (wxID_ANY, SetWindow::onSizeChange)
EVT_ERASE_BACKGROUND( SetWindow::onEraseBackground)
END_EVENT_TABLE ()