From ce43f772a9833d458fb4deb053ece681e62eeed5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 30 Jan 2018 01:47:47 +0100 Subject: [PATCH] Don't erase background of wxSearchCtrl buttons twice Set background style to indicate that wxSearchButton is painted entirely by its wxEVT_PAINT handler. This should eliminate potential flicker under MSW. --- src/generic/srchctlg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/generic/srchctlg.cpp b/src/generic/srchctlg.cpp index a0bcf165fa..6775f9bcae 100644 --- a/src/generic/srchctlg.cpp +++ b/src/generic/srchctlg.cpp @@ -162,7 +162,9 @@ public: m_search(search), m_eventType(eventType), m_bmp(bmp) - { } + { + SetBackgroundStyle(wxBG_STYLE_PAINT); + } void SetBitmapLabel(const wxBitmap& label) {