Get rid of wxComboPopupWindowEvtHandler in wxComboCtrlBase too

Use Bind() calls instead of another event handler too, for the same
reasons as in the previous commit.
This commit is contained in:
Vadim Zeitlin
2021-07-10 17:14:25 +01:00
parent d6426168a3
commit f3fb6dc833
2 changed files with 20 additions and 57 deletions

View File

@@ -575,6 +575,10 @@ protected:
void OnTextFocus(wxFocusEvent& event);
void OnTextKey(wxKeyEvent& event);
void OnPopupActivate(wxActivateEvent& event);
void OnPopupKey(wxKeyEvent& event);
void OnPopupSize(wxSizeEvent& event);
// Set customization flags (directs how wxComboCtrlBase helpers behave)
void Customize( wxUint32 flags ) { m_iFlags |= flags; }
@@ -636,9 +640,6 @@ protected:
// this is for the control in popup
wxEvtHandler* m_popupEvtHandler;
// this is for the popup window
wxEvtHandler* m_popupWinEvtHandler;
// main (ie. topmost) window of a composite control (default = this)
wxWindow* m_mainCtrlWnd;