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
+2 -1
View File
@@ -30,6 +30,8 @@ WelcomeWindow::WelcomeWindow()
{
SetIcon(load_resource_icon(_("app")));
SetBackgroundStyle(wxBG_STYLE_PAINT);
// init controls
#ifdef USE_HOVERBUTTON
wxControl* new_set = new HoverButtonExt(this, ID_FILE_NEW, load_resource_image(_("welcome_new")), _BUTTON_("new set"), _HELP_("new set"));
@@ -145,7 +147,6 @@ BEGIN_EVENT_TABLE(WelcomeWindow, wxFrame)
EVT_BUTTON (ID_FILE_RECENT, WelcomeWindow::onOpenLast)
EVT_BUTTON (ID_FILE_CHECK_UPDATES, WelcomeWindow::onCheckUpdates)
EVT_PAINT ( WelcomeWindow::onPaint)
EVT_ERASE_BACKGROUND(WelcomeWindow::onEraseBackground)
// EVT_IDLE ( WelcomeWindow::onIdle)
END_EVENT_TABLE ()