diff --git a/src/generic/srchctlg.cpp b/src/generic/srchctlg.cpp index 0eabaf5d9b..956edb3f83 100644 --- a/src/generic/srchctlg.cpp +++ b/src/generic/srchctlg.cpp @@ -173,7 +173,7 @@ private: DECLARE_EVENT_TABLE() }; -BEGIN_EVENT_TABLE(wxSearchButton, wxButton) +BEGIN_EVENT_TABLE(wxSearchButton, wxControl) EVT_LEFT_UP(wxSearchButton::OnLeftUp) EVT_PAINT(wxSearchButton::OnPaint) END_EVENT_TABLE()